AS a user, I want the ability to use calculations in the CLI interactively #19

Open
opened 2025-09-20 13:00:39 +01:00 by Vylpes · 1 comment
Owner

Epic: #16
Estimate: 0


SO THAT I can print a history of my calculations and be able to interact with what I've calculated in this session

Acceptance Criteria

GIVEN I am a user
WHEN I run calculator cli
THEN I will be entered into the interactive mode

GIVEN I am in the interactive mode
WHEN I enter quit
THEN the application will exit

GIVEN I am in the interactive mode
WHEN I enter <expression>
THEN the output will be added to the program
AND I will be able to type another expression

GIVEN I am in the interactive mode
WHEN I enter <expression>
AND it is invalid
THEN the output will output the error
AND I will be able to type another expression

Subtasks

  • Add interactive mode
  • Feed input into expression parser
  • Add quit command

Notes

  • Same errors as the non-interactive mode
Epic: #16 Estimate: 0 --- SO THAT I can print a history of my calculations and be able to interact with what I've calculated in this session ## Acceptance Criteria GIVEN I am a user WHEN I run `calculator cli` THEN I will be entered into the interactive mode GIVEN I am in the interactive mode WHEN I enter `quit` THEN the application will exit GIVEN I am in the interactive mode WHEN I enter `<expression>` THEN the output will be added to the program AND I will be able to type another expression GIVEN I am in the interactive mode WHEN I enter `<expression>` AND it is invalid THEN the output will output the error AND I will be able to type another expression ## Subtasks - [ ] Add interactive mode - [ ] Feed input into expression parser - [ ] Add quit command ## Notes - Same errors as the non-interactive mode
Vylpes added this to the 0.1.0 milestone 2025-09-20 13:00:39 +01:00
Author
Owner

Blocked by #15

Blocked by #15
Vylpes changed title from CLI interactive mode to AS a user, I want the ability to use calculations in the CLI interactively 2025-10-20 12:38:33 +01: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#19
No description provided.