bollettino-cli
bollettino-cli is a command line interface for Bollettino.
It supports generation of postal payment slips from the command line as well as from CSV files.
Installation
Install the gem as:
$ gem install bollettino-cli
Usage
Run the following command to generate a slip:
$ bollettino-cli generate --payee-account=[PAYEE_ACCOUNT] --payee-name=[PAYEE_NAME] \
--payer-name=[PAYER_NAME] --payer-street=[PAYER_STREET] --payer-zip=[PAYER_ZIP] \
--payer-location=[PAYER_LOCATION] --order-numamount=[ORDER_NUMAMOUNT] \
--order-textamount=[ORDER_TEXTAMOUNT] --order-reason=[ORDER_REASON] [OUTPUT_PATH]
For the documentation run:
$ bollettino-cli help
Generating from CSV
To generate slips from a CSV file run:
$ bollettino-cli csv-generate --source=[CSV_PATH] [OUTPUT_DIR]
The columns' order is not important, but the headers must match the options of
the generate
command.
Contributing
- Fork it (https://github.com/interconn-isp/bollettino-cli/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Maintainers
bollettino-cli is developed and maintained by Alessandro Desantis.
License
bollettino-cli is released under the MIT license.