forked from florinpop17/app-ideas
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is a basic calculator cli. Its main feature is adding multiple integers. Use `-f` flag to add the floating-point. Add only even or odd numbers using the `even` or `odd` sub-command. This cli project covers almost all the basic operations required to build a cli.
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Calculator CLI | ||
|
||
**Tier:** 2-Intermediate | ||
|
||
Create a basic calculator with addition feature. | ||
|
||
## User Stories | ||
|
||
- [ ] User can add multiple numbers using `add` command. | ||
- [ ] User can add floating numbers using the `-f` flag. | ||
- [ ] User can add only even/odd numbers using `even`/`odd` sub-command. | ||
- [ ] User can use `--help` or `-h` flag to get all the available commands and flags. | ||
|
||
> Note: The stories 1 and 2 are basically for static typed language, where passed arguments must be of same type. | ||
## Bonus Features | ||
|
||
- [ ] User can use all the basic arithmetic operations like (addition, subtraction, multiplication and divison). | ||
- [ ] User can use `--help` or `-h` flag to get the sub-commands of command. | ||
- [ ] **Power of** and **Square Root of** operation. | ||
|
||
## Useful links and resources | ||
|
||
- [5 keys to create a killer CLI in Go](https://blog.alexellis.io/5-keys-to-a-killer-go-cli/) | ||
- [How to build a CLI tool in NodeJS ?](https://www.freecodecamp.org/news/how-to-build-a-cli-tool-in-nodejs-bc4f67d898ec/) | ||
- [Build a Command Line Interface (CLI) Application with Node.js](https://codeburst.io/build-a-command-line-interface-cli-application-with-node-js-59becec90e28) | ||
- [Building Beautiful Command Line Interfaces with Python](https://codeburst.io/building-beautiful-command-line-interfaces-with-python-26c7e1bb54df) | ||
- [How to create a CLI in golang with cobra](https://schadokar.dev/posts/how-to-create-a-cli-in-golang-with-cobra/) | ||
- [Building a Network Command Line Interface in Go](https://tutorialedge.net/golang/building-a-cli-in-go/) | ||
|
||
## Example projects | ||
|
||
- [my-calc](https://github.com/schadokar/my-calc) |