/ Command Line

A command-line tool to query exchange rate

A command-line tool to query exchange rate

exchangerate

A simple command-line tool to query exchange rate.

er-demo

Installation

Homebrew

brew tap timothyye/tap
brew install timothyye/tap/exchangerate

Using Go

go get github.com/TimothyYe/exchangerate/cmd/er

Manual Installation

Download it from releases and extact it to /usr/bin or your PATH directory.

Usage

% 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

GitHub