MCPcopy Index your code
hub / github.com/bcicen/xiny

github.com/bcicen/xiny @0.3.5

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.3.5 ↗ · + Follow
42 symbols 87 edges 8 files 8 documented · 19%
What it actually does AI analysis from the code graph — generated when you open this
loading…
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.3/xiny-0.3.3-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.3/xiny-0.3.3-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

If no positional arguments are provided, xiny will be started in interactive mode, providing a prompt for conversions with autocomplete and other useful features

Options

Option Description
-n display only numeric output (exclude units)
-v enable more verbose output (twice for debug output)

Core symbols most depended-on inside this repo

parseCmd
called by 3
cmd/xiny/parse.go
Error
called by 2
log/main.go
Match
called by 2
internal/command/model.go
filterName
called by 2
cmd/xiny/interactive.go
filterQuantity
called by 2
cmd/xiny/interactive.go
parseOpts
called by 2
cmd/xiny/parse.go
exitErr
called by 2
cmd/xiny/main.go
recovery
called by 2
cmd/xiny/main.go

Shape

Function 32
Method 5
Struct 4
TypeAlias 1

Languages

Go100%

Modules by API surface

cmd/xiny/interactive.go14 symbols
cmd/xiny/main.go8 symbols
log/main.go4 symbols
internal/command/command.go4 symbols
cmd/xiny/main_test.go4 symbols
internal/command/model.go3 symbols
cmd/xiny/cmds.go3 symbols
cmd/xiny/parse.go2 symbols

For agents

$ claude mcp add xiny \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact