calculator-cli
Version, currently 0.1.03 versions
- 0.2.0latestDec 4, 2024
- 0.1.0not indexedJan 10, 2025
- calculator-clinot indexedJan 10, 2025
github.com/evilenx/calculator-cli
calculator in crystal and implemented a navigation system inspired by the vi editor
Nothing has been indexed for 0.1.0 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
calculator-cli:
github: evilenx/calculator-cli
version: ~> 0.1.0Then run:
shards installshard.yml
No shard.yml has been indexed for 0.1.0. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
Calculator-cli
A Simple Command Line Calculator
Perform basic arithmetic operations directly from your terminal with this easy-to-use CLI tool.
Features
- User-Friendly Interface: Effortlessly execute single or multiple calculations sequentially.
- Arithmetic Operations: Add, subtract, multiply, or divide with ease.
Requirements
- Operating System: Unix-like OS (tested on macOS and Linux)
- Crystal Version: 1.0 or higher
Installation
-
Clone the Repository:
git clone https://github.com/evilenx/calculator-cli -
Navigate to the Repository:
cd calculator-cli -
Build the Program with Crystal:
crystal build calculator-cli.cr
Usage
Once successfully built, run the binary named calc:
./calc
The application will prompt you to enter values and choose an operation accordingly. Enjoy performing quick calculations right from your terminal!
Examples
Performing a calculation is straightforward:
shell
$ ./calc Enter value 1: 4 Enter operator (+,-,*,/): + Enter value 2: 6 Result: 10.0
Multiple calculations can also be performed sequentially:
shell
$ ./calc Enter value 1: 8 Enter operator (+,-,*,/): * Enter value 2: 3 Result: 24.0 Enter another value (y/n)? y Enter value 1: 9 Enter operator (+,-,*,/): / Enter value 2: 3 Result: 3.0 Enter another value (y/n)? n Goodbye!
Feel free to contribute improvements, bug fixes, or feature requests. Happy calculating!
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.1.0- Tagged
- Jan 10, 2025
- Commit
56b412c0f931- Indexed
- not yet
Dependents
No indexed shard depends on this one yet.
Repository
github.com/evilenx/calculator-cli
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 13, 2026
- Synced
- Aug 13, 2026
- Versions
- 3