1 unstable release
0.1.0 | Oct 21, 2022 |
---|
#317 in Value formatting
17KB
337 lines
🦀 Dinero Exchange CLI
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
API Key
You will need a (free) API key to access the data. You can get one here.
📜 License
Dependencies
~12–29MB
~413K SLoC