calculator_cli 0.1.1 copy "calculator_cli: ^0.1.1" to clipboard
calculator_cli: ^0.1.1 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

Commands #

There are currently four command which can perform four different operation.

  • 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.
0
likes
0
pub points
0%
popularity

Publisher

verified publishernstack.in

A a simple dart cli package which can do basic Arithmetic Calculation.

Homepage

License

unknown (LICENSE)

Dependencies

args, flutter, mason_logger, prompts

More

Packages that depend on calculator_cli