{"id":26296194,"url":"https://github.com/rohancyberops/command-line-calculator","last_synced_at":"2025-10-15T04:42:07.658Z","repository":{"id":265435239,"uuid":"895635286","full_name":"RohanCyberOps/Command-Line-Calculator","owner":"RohanCyberOps","description":"A simple command-line calculator built in Ruby that supports basic arithmetic operations like addition, subtraction, multiplication, and division. This calculator allows users to perform calculations interactively in the terminal or command prompt.","archived":false,"fork":false,"pushed_at":"2025-06-08T07:11:08.000Z","size":23,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-06T23:44:23.562Z","etag":null,"topics":["calculator","commandline","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RohanCyberOps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"chrohangurjar"}},"created_at":"2024-11-28T15:22:17.000Z","updated_at":"2025-06-08T07:14:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"09490233-c37d-495a-81d5-41be5902a663","html_url":"https://github.com/RohanCyberOps/Command-Line-Calculator","commit_stats":null,"previous_names":["chrohangurjar/command-line-calculator","rohancyberops/command-line-calculator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RohanCyberOps/Command-Line-Calculator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RohanCyberOps%2FCommand-Line-Calculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RohanCyberOps%2FCommand-Line-Calculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RohanCyberOps%2FCommand-Line-Calculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RohanCyberOps%2FCommand-Line-Calculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RohanCyberOps","download_url":"https://codeload.github.com/RohanCyberOps/Command-Line-Calculator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RohanCyberOps%2FCommand-Line-Calculator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274140206,"owners_count":25229138,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["calculator","commandline","ruby"],"created_at":"2025-03-15T04:17:14.296Z","updated_at":"2025-10-15T04:42:02.641Z","avatar_url":"https://github.com/RohanCyberOps.png","language":"Ruby","funding_links":["https://github.com/sponsors/chrohangurjar"],"categories":[],"sub_categories":[],"readme":"\n---\n\n# Command-Line Calculator in Ruby 🚀\n\nA simple command-line calculator built in Ruby that supports basic arithmetic operations like addition, subtraction, multiplication, and division. This calculator allows users to perform calculations interactively in the terminal or command prompt.\n\n## Features ✨\n- Supports basic operations: `+`, `-`, `*`, `/`.\n- Handles division by zero with an error message.\n- Interactive command-line interface.\n- Repeats the calculation loop until the user decides to exit.\n\n## Prerequisites 🔧\n- Ruby (version 2.x or higher) installed on your system.\n\n## CLI 🔧\n![Bash](image.png)\n\n\n## Installation 🛠️\n\n1. **Clone the repository**:\n   ```bash\n   git clone https://github.com/chrohangurjar/command-line-calculator.git\n   ```\n   \n2. **Navigate to the project folder**:\n   ```bash\n   cd command-line-calculator\n   ```\n\n3. **Run the program**:\n   In your terminal, run the following command to start the calculator:\n   ```bash\n   ruby calculator.rb\n   ```\n\n## Usage 📱\n\nOnce the program starts, you will be prompted to choose an operation. The available operations are:\n- `+` (Addition)\n- `-` (Subtraction)\n- `*` (Multiplication)\n- `/` (Division)\n\nYou will also be asked to input two numbers for the calculation. After displaying the result, the program will prompt you again for the next operation or allow you to exit by typing `exit`.\n\n### Example:\n\n```bash\nWelcome to Command-Line Calculator! 🚀\nChoose an operation: +, -, *, /, or type 'exit' to quit.\nEnter operation: +\nEnter the first number: 5\nEnter the second number: 3\nResult: 8.0\nEnter operation: /\nEnter the first number: 10\nEnter the second number: 0\nResult: Error: Division by zero!\nEnter operation: exit\nThank you for using the calculator! Goodbye! 👋\n```\n\n## Contributing 🤝\n\nIf you would like to contribute to this project, feel free to fork the repository, make improvements, and submit a pull request!\n\n### Guidelines:\n- Ensure your code is clean and well-documented.\n- Test your code to ensure it works as expected.\n\n## License 📜\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n---\n\n### Contact ✨\n\nFor any queries, you can reach me at:  \n- Email: [Your Email]\n- GitHub: [Your GitHub Profile](https://github.com/chrohangurjar)\n\n---\n\n### Acknowledgements 💡\n\n- Ruby for being a fantastic language to develop this simple tool.\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohancyberops%2Fcommand-line-calculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frohancyberops%2Fcommand-line-calculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohancyberops%2Fcommand-line-calculator/lists"}