AS a user, I want the ability to use calculations in the CLI non-interactively #18

Open
opened 2025-09-20 13:00:23 +01:00 by Vylpes · 0 comments
Owner

Epic: #16
Estimate: 0


SO THAT I can calculate a simple sum quickly while in the terminal without needing the launch the entire application

Acceptance Criteria

GIVEN I am a user
WHEN I run calculator cli <expression>
THEN the result of <expression> will be outputted

GIVEN I am a user
WHEN I run calculator cli <expression>
AND <expression> is invalid
THEN the result will be output the error

Subtasks

  • Create non-interactive mode
  • Create expression parser
  • Create error handler

Notes

  • The errors which will be handled are stuff like invalid expression (1 +, not a sum), divide by zero (5 / 0)
Epic: #16 Estimate: 0 --- SO THAT I can calculate a simple sum quickly while in the terminal without needing the launch the entire application ## Acceptance Criteria GIVEN I am a user WHEN I run `calculator cli <expression>` THEN the result of `<expression>` will be outputted GIVEN I am a user WHEN I run `calculator cli <expression>` AND `<expression>` is invalid THEN the result will be output the error ## Subtasks - [ ] Create non-interactive mode - [ ] Create expression parser - [ ] Create error handler ## Notes - The errors which will be handled are stuff like invalid expression (`1 +`, `not a sum`), divide by zero (`5 / 0`)
Vylpes added this to the 0.1.0 milestone 2025-09-20 13:00:23 +01:00
Vylpes changed title from CLI non-interactive mode to AS a user, I want the ability to use calculations in the CLI non-interactively 2025-10-20 12:28:01 +01:00
Vylpes added this to the 0.1 Sprint 2 project 2026-03-06 18:20:44 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
RabbitLabs/calculator#18
No description provided.