xiny

command module
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2018 License: MIT Imports: 10 Imported by: 0

README

xiny

A simple command line tool for converting between various units of measurement

xiny

Install

Fetch the latest release for your platform:

Linux
sudo wget https://github.com/bcicen/xiny/releases/download/v0.3.1/xiny-0.3.1-linux-amd64 -O /usr/local/bin/xiny
sudo chmod +x /usr/local/bin/xiny
OS X
sudo curl -Lo /usr/local/bin/xiny https://github.com/bcicen/xiny/releases/download/v0.3.1/xiny-0.3.1-darwin-amd64
sudo chmod +x /usr/local/bin/xiny
Docker
docker run --rm -ti \
           --name=xiny \
           quay.io/vektorlab/xiny:latest

Usage

Conversions may be passed in long form:

$ xiny 20 kilograms in pounds
44.092452 pounds

or shortened form with symbols:

$ xiny 20kg in lb
44.092452 pounds

Use the verbose flag(-v) to print the formula used for the conversion:

$ xiny -v 32C in F
celsius -> farenheit: (x * 1.8 + 32)
89.6 farenheit
Interactive mode

Use the -i flag to start xiny in an interactive, prompt-like mode with autocomplete and other useful features

Options
Option Description
-i start xiny in interactive mode
-v enable verbose output
-vv enable debug output

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