0 purchases
calculator cli
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 connect to me for support.
Installation #
dart pub global activate calculator_cli
copied to clipboard
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
copied to clipboard
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
Add Command #
You can run this command and this will add these two numbers.
calculator_cli add 12 45
copied to clipboard
You may also provide more than two number for addition
calculator_cli add 12 45 19 89
copied to clipboard
Help
Help instruction can be find like this by ruuning the command
calculator_cli --help
copied to clipboard
A Simple Calculator
Usage: calculator_cli <command> [arguments]
Global options:
-h, --help Print this usage information.
--[no-]verbose log all the steps or command execution
--[no-]version print current version of the app
Available commands:
add Add two or more than two number
area Find area of different shape
div Divide one number from other
mul Multiply two or more than two number
sub Subtract one number from other
Run "calculator_cli help <command>" for more information about a command.
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.