![](/hugo-portfolio/project/bmi/featured_hu8666b0214ef6ef8b40207752073739fc_79446_720x2500_fit_q75_h2_lanczos_3.webp)
This is a command-line interface (CLI) tool for calculating body mass index (BMI) based on user input for weight and height.
Features
- Calculate BMI based on weight (in kilograms) and height (in centimeters).
- Display the calculated BMI value and corresponding weight category (underweight, normal, overweight, or obese).
- Allow for input of weight and height either through command-line arguments.
- Validate user input to ensure that weight and height are valid numeric values.
Usage
To calculate your BMI using this CLI tool, run the following command:
bmi <weight> <height>
Replace
Installation
To install the BMI Calculator CLI tool, simply download the executable file for your operating system from the releases page on GitHub.
Alternatively, you can clone the repository and build the executable file yourself using Go:
git clone git@github.com:k1lgor/bmi.git
cd bmi
go build
sudo mv bmi /usr/bin
License
This project is licensed under the MIT License. See the LICENSE file for details.