No description
Find a file
2022-09-21 13:24:57 +00:00
examples Version 0.7.1 2022-09-21 13:24:31 +00:00
src Version 0.7.1 2022-09-21 13:24:31 +00:00
.gitignore Removed build 2021-11-26 17:17:24 -05:00
changelog.md Version 0.7.1 2022-09-21 13:24:31 +00:00
config.nims init 2021-11-26 16:48:29 -05:00
license Added license 2021-11-26 16:52:47 -05:00
pricecsv.nimble Version 0.7.1 2022-09-21 13:24:31 +00:00
readme.md Version 0.7.0 2022-09-20 11:17:11 +00:00

pricecsv

Easily calculate the total of all products in csv

Usage

Help

Usage:
  main [optional-params] [files: string...]
Calculates the total price of prices csv

`quantity` col is optional
Options:
  -h, --help                               print this cligen-erated help
  --help-syntax                            advanced: prepend,plurals,..
  -n=, --nameCol=      string  "name"      set nameCol
  -q=, --quantityCol=  string  "quantity"  set quantityCol
  -p=, --priceCol=     string  "price"     set priceCol
  -d=, --discountCol=  string  "discount"  set discountCol
  --dedup              bool    true        set dedup
  -s, --sort           bool    true        set sort
  -c, --colors         bool    true        set colors
  -e, --excel          bool    false       set excel

Example

$ pricecsv examples/items.csv

or multiple

$ pricecsv examples/*.csv

You can even select output format to Excel

$ pricecsv examples/*.csv -e

Fields

Every field can be changed, but the default is:

  • name: The product name. Required
  • price: The product price. A float number. Required
  • quantity: Quantity of product. Default 1
  • discount: Discount of product. If ends with '%', will calculate the percentage, else it will subtract the value. Default 0

TODO

  • Add example
  • Add usage guide
  • Add optional CSV print mode
  • Add possibility to append the subtotal and total in the csv

License

GPL-3