| Crates.io | dinero-exchange-cli |
| lib.rs | dinero-exchange-cli |
| version | 0.1.0 |
| created_at | 2022-10-21 10:04:23.810039+00 |
| updated_at | 2022-10-21 10:04:23.810039+00 |
| description | A proof of concept CLI that uses Dinero. |
| homepage | https://github.com/raed667/dinero-exchange-cli |
| repository | https://github.com/raed667/dinero-exchange-cli |
| max_upload_size | |
| id | 693395 |
| size | 51,768 |
A very basic CLI that internally uses Dinero for currency handling.
dinero-exchange-cli --help
Apply exchange rates. Simple CLI project to demonstrate the `Dinero` crate capabilities.
Usage: dinero-exchange-cli [OPTIONS] [VALUE]
Arguments:
[VALUE] Amount to apply the exchange rate to [default: 1]
Options:
-d, --date <DATE> Date of exchange rate for historical values
-f, --from <FROM> Base currency (Example: EUR,USD,CAD) [default: EUR]
-t, --to <TO> Target currency (Example: EUR,USD,CAD) [default: TND]
-k, --key <KEY> API key for Fixer API
--json Output JSON instead of human readable messages
-h, --help Print help information
-V, --version Print version information
You will need a (free) API key to access the data. You can get one here.