At the project root directory:
$ make [build]
After this command, executable ./ereceipt will be generated. To install this to home directory, you can use:
$ mix escript.install
Add ~/.mix/escripts/ereceipt to PATH so that you can run this everywhere using local configuration files.
At the project root directory:
$ make test
At the project root directory:
$ make example
This command will running application with data files in test/example directory
To get help:
$ ereceipt -h
With categories.csv, tax.conf and input.csv existed in local directory:
$ ereceipt
To manually sepecify those files:
$ ereceipt -i input.csv -i input2.csv -i input3.csv -t tax.conf -c categories.csv
To also write result into output CSV (in current directory) instead of stdout only:
$ ereceipt -o ""
... or specified output directory:
$ ereceipt -o "test/example"
Output files named output_*.csv will be created.