Converter CLI is a simple command-line tool for converting units directly from the terminal. It supports length, weight, volume, and time units.
- mm, cm, dm, m, km, in (inch), ft (foot), yd (yard), mi (mile)
- mg, g, kg, t, oz (ounce), lb (pound), st (stone), cwt (UK hundredweight)
- ml, cl, dl, l
- ns (nanoseconds), us (microseconds), ms (milliseconds), s (seconds), min (minutes), h (hours), d (days)
- b (byte), kib (kibibyte), mib (mebibyte), gib (gibibyte), tib (tebibyte) and kb (kilobyte), mb (megabyte), gb (gigabyte), tb (terabyte)
Run the program with three arguments: number, from unit, and to unit.
$ ./target/release/convert 100 cm m
100 cm = 1 mgit clone https://github.com/0Dest/converter-cli.git
cd converter-clicargo build --releaseFrom the root of the project, run the binary in target/release/:
./target/release/convert 100 cm mTo run convert from anywhere, add the release directory to your PATH:
export PATH=$PATH:/path/to/your/project/target/releaseNow you can simply run:
convert 100 cm m(ReadMe is generated with ChatGPT, i dont know english very good)