KY64/kalko

Experimental CLI-based calculator + unit conversion tool

โ˜… 0Forks 0RustGitHub โ†—Compare

README


Kalko: (Kal)kulator+(ko)nversi

Kalko is a command-line based calculator with unit conversion feature. Kalko is short for "KALkulator" and "KOnversi" which means calculator + conversion. The conversion feature is a unit conversion such as kilogram(kg) to gram(g), mile to kilometer(km), etc.

Note: This project is only a playground for me to learn Rust programming language so there might be unstable feature. You're welcome to experiment

Features

  • Basic math operation

    • add (+)

    • substract (-)

    • multiply (x)

    • divide (/)

  • Unit conversion

    • distance (meter, mile, feet)

    • weight (pound, gram, ounce)

  • Interactive shell mode [Planning ๐Ÿ“]

How to use

  • Container

    # Dcker
    docker run -it --rm --name kalko ky64/kalko:0.1
    
    # Podman
    podman run -it --rm --name kalko ky64/kalko:0.1

    Then start type kalko to use it.

  • Manual

    git clone https://github.com/KY64/kalko.git
    cd kalko
    cargo build --release
    sudo ln -s $(pwd)/target/release/kalko /usr/local/bin/kalko

Usage

Calculator

kalko [number][+ / x -][number]

Conversion

kalko [source unit] [target unit]

Inspiration

Attribute

Contributors

KY64

Issues