dinero-exchange-cli

Crates.iodinero-exchange-cli
lib.rsdinero-exchange-cli
version0.1.0
sourcesrc
created_at2022-10-21 10:04:23.810039
updated_at2022-10-21 10:04:23.810039
descriptionA proof of concept CLI that uses Dinero.
homepagehttps://github.com/raed667/dinero-exchange-cli
repositoryhttps://github.com/raed667/dinero-exchange-cli
max_upload_size
id693395
size51,768
Raed (raed667)

documentation

README

🦀 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

asciicast

API Key

You will need a (free) API key to access the data. You can get one here.

📜 License

MIT

Commit count: 4

cargo fmt