go-term-utils

command module
v0.0.0-...-63a49d0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2017 License: MIT Imports: 3 Imported by: 0

README

upload.wikimedia.org

Go Terminal Utils

Build Status Go Report Card License

A collection of go scripts writed for practice with APIs

The idea come from jakewmeyer/Ruby-Scripts repository.

List of commands available:
  • curr - Show conversion rate and convert value
  • crycurr - Show conversion rates of crypto currency
  • ip - Show info about ip
  • tor - Show if Tor Connection is up locally
  • space - Show the current position of ISS and current crew names
Usage: go-term-utils [options] command <params>
Commands & params:
  curr    <convert_from> <convert_to> [<value>]
  crycurr <convert_to>
  ip      [<address>]
  space
  tor
curr

Show conversion rate between 2 currency, convert value on third param is optional

m4dfry:~$ go-term-utils curr EUR USD
Conversion : EUR  ->  USD
Rate       : 1.1799

m4dfry:~$ go-term-utils curr EUR USD 45.6
Conversion : EUR  ->  USD
Rate       : 1.1799
Value      : 45.6 -> 53.80
crycurr

Show conversion rates of the best know crypto currency. Ordered by value.

m4dfry:~$ go-term-utils crycurr EUR
1 BTC   ->  3603.0400 EUR
1 ETH   ->   273.4700 EUR
1 DASH  ->   255.3000 EUR
1 LTC   ->    44.1900 EUR
1 ETC   ->    13.6700 EUR
1 XRP   ->     0.2247 EUR
1 XEM   ->     0.2173 EUR

m4dfry:~$ go-term-utils crycurr USD
1 BTC   ->  4203.9100 USD
1 ETH   ->   320.8100 USD
1 DASH  ->   297.3700 USD
1 LTC   ->    50.9200 USD
1 ETC   ->    15.8300 USD
1 XRP   ->     0.2624 USD
1 XEM   ->     0.2484 USD
ip

Show info about IP passed as argument. With no argument show info about your IP.

m4dfry:~$ go-term-utils ip 8.8.8.8
IP       : 8.8.8.8
ISP      : Google
Location : Mountain View(), United States(US)
space

Show the current position of ISS and current crew names

m4dfry:~$ go-term-utils space
ISS Position Now:
Lat(12.0504) Long(129.0457)
 Unable to load GeoPosition (ZERO_RESULTS)

There are 6 people in space now:
 - Peggy Whitson on ISS
 - Fyodor Yurchikhin on ISS
 - Jack Fischer on ISS
 - Sergey Ryazanskiy on ISS
 - Randy Bresnik on ISS
 - Paolo Nespoli on ISS

Note & TODOs

Please, let me know if I've made some mistake somewhere.

TODO

  • finish the ouput of tor command
  • implement weather

Stuff used & read to make this:

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL