Giter VIP home page Giter VIP logo

wordpress-scripts's Introduction

FIC Scripts

Build Status

This is an experimental repository containing export scripts for our Wordpress site, written in Haskell.

You should make an env.sh with the following content:

export DB_USER="<mysqluser>" DB_PASS="<mysqlpass>" DB_NAME="<database>"
export MAPS_API_KEY="<googe maps api key>"

Then you can build/run the scripts with:

sudo apt-get install libmariadbclient-dev libpcre3-dev  # For Debian/Ubuntu
stack build
source ./env.sh
stack exec directory-fix-coordinates -- --delete-private

Some scripts have a --help flag & some have CLI arguments/flags to change their actions. Use the --help flag on any script to list their options:

$ stack exec subscriber-export -- --help
Subscriptions - Subscriber Export

subscriber-export [OPTIONS]
  Export the name & email of all active subscribers.

Common flags:
  -p --products=PRODUCT_ID,...
  -v --variations=VARIATION_ID,...
  -? --help                         Display help message
  -V --version                      Print version information

Any subscriptions with a matching product or variation will be included.

Passing no product or variation IDs will export all active subscriptions.

You can build a specific script and/or pass additional options like so:

stack build fic-scripts:directory-editor-check --pedantic --ghc-options -O2

You can build HTML documentation with:

stack build --haddock
# Or skip building documentation for dependencies
stack build --haddock --no-haddock-deps

License

GPL-3.0

wordpress-scripts's People

Contributors

prikhi avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.