calculator_cli 0.1.4 calculator_cli: ^0.1.4 copied to clipboard
A a simple dart cli package which can do basic Arithmetic Calculation.
Calculator CLI #
I made this cli just of learning/showcase purpose. Using this CLI we can do arthemeatic calculation. If you are someone who is learning CLI and wants to looking to build a cli you can use this as reference or you may conect to me for support.
Installation #
dart pub global activate calculator_cli
Get Started #
Type this command after installation, you will be given few options to select are shape and provide their input (required to calculate area).
calculator_cli area
Features #
There are currently four command which can perform four different operation.
- Area of square, rectange, circle
- Add two or more numbers
- Subtract
- Multiply two or more numbers
- Division
calculator_cli add #
You can run this command and this will add these two numbers.
calculator_cli add 12 45
You may also provide more than two number for addition
calculator_cli add 12 45 19 89
Additional information #
To build/compile use this command
dart compile exe bin/calculator_cli.dart -o calculator_cli
To run locally
dart bin/calculator_cli.dart
calculator_cli --help
A Simple Calculator
Usage: calculator_cli <command> [arguments]
Global options:
-h, --help Print this usage information.
Available commands:
add Add two or more than two number
div Divide one number from other
mul Add two or more than two number
sub Subtract one number from other
Run "calculator_cli help <command>" for more information about a command.