A command-line tool to query exchange rate.
Switch branches/tags
Nothing to show
Clone or download
Latest commit 5b3f129 Aug 24, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cmd/er fix lint warnings Aug 24, 2018
snapshots add snapshots Aug 1, 2018
vendor add dep Aug 24, 2018
.gitignore update gitignore file Jun 5, 2018
.travis.yml update travis ci config Aug 24, 2018
Gopkg.lock add dep Aug 24, 2018
Gopkg.toml add dep Aug 24, 2018
LICENSE update LICENSE Jun 1, 2018
README.md add help and version info Aug 1, 2018
gometalinter.json update travis ci config Aug 24, 2018
rate.go update README Aug 1, 2018
rate_helper.go update README Aug 1, 2018
rate_helper_test.go update README Aug 1, 2018
rate_test.go update README Aug 1, 2018

README.md

 _                              _             
|_     _ |_   _. ._   _   _    |_)  _. _|_  _ 
|_ >< (_ | | (_| | | (_| (/_   | \ (_|  |_ (/_
                      _|    

Build Status Go Report Card GoDoc

A simple command-line tool to query exchange rate.

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

Licence

MIT License