A simple command-line tool to query exchange rate.
brew tap timothyye/tap brew install timothyye/tap/exchangerate
go get github.com/TimothyYe/exchangerate/cmd/er
Download it from releases and extact it to /usr/bin or your PATH directory.
% er -h Exchange Rate V1.0 https://github.com/TimothyYe/exchangerate NAME: Exchange Rate - A simple command-line tool to query exchange rate USAGE: er [from currency] [amount] [to currency] VERSION: 1.0 EXAMPLES: er USD Query USD and show exchange rate for common used currencies. er USD 40.98 Query USD with amount 40.98, and show the equal amount of other currencies. er USD 12 CNY,JPY Query USD with amount 12 and show the equal amount of specified currencies. GLOBAL OPTIONS: --help, -h show help --version, -v print the version