Skip to content

Latest commit

 

History

History
80 lines (62 loc) · 1.65 KB

rink.1.adoc

File metadata and controls

80 lines (62 loc) · 1.65 KB

rink(1)

Name

rink - Unit calculator and dimensional analysis tool

Synposis

rink
rink [EXPR]…​
rink -f <FILE>
rink (-h | -V | --config-path)

Description

Rink is a unit conversion and calculation tool which can be used for both small and simple arithmetic and more complex dimensionality analysis and other tasks.

Options

--config-path

Prints a path to the config file, then exits.

--fetch-currency: Fetches the latest version of the currency data, then exits. Can be used as part of a cron job, possibly together with setting currency.fetch_on_startup to false.

-f
--file <file>

Reads expressions from a file, one per line, printing them to stdout and then exitting.

-h
--help

Print help information and then exits.

-V
--version

Prints the current version and then exits.

Exit status

Returns 0 unless an error prevented rink from starting up.

Environment

NO_COLORS

If set to a non-empty string, rink will disable colored text rendering.

Files

Rink looks for a configuration file in $XDG_CONFIG_DIR/rink/config.toml, see rink(5).

Rink relies on some data files, which are found using a search path. See rink-defs(5) and rink-dates(5).

Downloaded currency data is saved in $XDG_CACHE_DIR/rink/currency.json.