Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor command #79

Merged
merged 3 commits into from
Mar 19, 2024

Conversation

nkotaa
Copy link

@nkotaa nkotaa commented Mar 19, 2024

Currently execute() returns a string, which is unintuitive and conveys no information about the success or failure of the outcome.

Changing it to return bool would make it easier to write tests and assertions, in line with goals #46 #47 #49 .

nkotaa added 3 commits March 19, 2024 20:35
In our command classes, execute() returns a string for the Ui to print.

This is unintuitive and conveys no information about the success or
failure of the execution action.

Let's have execute() return its result status instead.

This would make it easier to write tests and assertions, aligning with
our goals for a more robust application.
Copy link

@XavierLiau34 XavierLiau34 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Code follows conventional coding standards.

@XavierLiau34 XavierLiau34 merged commit e48c129 into AY2324S2-CS2113T-T09-2:master Mar 19, 2024
3 checks passed
@nkotaa nkotaa added this to the v1.0 milestone Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants