Thanks to visit codestin.com
Credit goes to github.com

Skip to content

staxhinho/Uniter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Uniter

Uniter is a unit converter CLI tool.

Alt

🧰 Commands

Convertion Types

  • Temperature(Celsius, Fahrenheit, Kelvin)
  • Weight(Metric, Imperial)
  • Lenght(Metric, Imperial, Space)
  • Money(All currencies under FXRatesAPI, also you don't need any API keys)
  • Time
  • Volume(Metric, Imperial, Solid, Liquid)

Other commands

  • face - Enters interface/dialog option.
  • help
  • exit

Other info

Money maximum decimals is 15 due to the API.

In the decimal rounding it will return 0.0 only if the value is truly close to zero, not just small.

Example usage

Input: "convert_initial" "value""input_unit" "output_unit" "decimals"

Input:

w 98kg sh.t 8

Output:

0.10802651sh.t

Input:

m 89eur jpy

Output:

14421.6021405JPY

🚀 Running Uniter

Start cloning Uniter:

git clone https://github.com/staxhinho/Uniter.git

To compile and run:

cargo run

Make sure you have cargo installed and you're inside the directory in your terminal.

⚙️ Development

Follow commit template

Commit types

  • New - New feature.
  • Fix - Fixed or optimized a feature.
  • Feat - Changed something in a feature that is not fixing, like changing logic or adding new behaviour.
  • Docs - Changing documentation.

Message examples

Commit message with description and breaking change footer

Feat: allow provided config object to extend other configs

BREAKING CHANGE: 'extends' key in config file is now used for extending other config files.

Commit message with no body

Fix: correct spelling of CHANGELOG

About

Uniter is a unit converter CLI tool.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages