mirror of
https://github.com/thisago/pricecsv
synced 2026-01-15 05:01:42 +00:00
No description
| examples | ||
| src | ||
| .gitignore | ||
| changelog.md | ||
| config.nims | ||
| license | ||
| pricecsv.nimble | ||
| readme.md | ||
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. Requiredprice: The product price. A float number. Requiredquantity: Quantity of product. Default 1discount: 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
subtotalandtotalin the csv
License
GPL-3