Skip to content

[W5][T08-01]-ZhaoJunRu - #44

Open
quinnzzzzz wants to merge 2 commits into
nusCS2113-AY1819S2:masterfrom
quinnzzzzz:W5]T08-1]Zhao-JunRu
Open

[W5][T08-01]-ZhaoJunRu#44
quinnzzzzz wants to merge 2 commits into
nusCS2113-AY1819S2:masterfrom
quinnzzzzz:W5]T08-1]Zhao-JunRu

Conversation

@quinnzzzzz

Copy link
Copy Markdown

No description provided.

@quinnzzzzz quinnzzzzz changed the title W5T0801-ZhaoJunRu Warning Message added [W5][T08-01]-ZhaoJunRu Feb 11, 2019
@ndhuu

ndhuu commented Feb 11, 2019

Copy link
Copy Markdown

Interesting enhancement, the confirmation is widely used and very relevant to this

@articstranger

Copy link
Copy Markdown

Definitely a useful safeguard for newer users who accidentally type in the command

@RubaP RubaP left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Good job for adding a simple but a nice enhancement. I would suggest to always update/add the test cases as well as a practice whenever you make a functional change.

Comment thread docs/UserGuide.adoc
Warning message for clearing all data
Key in "YES" to continue
Clears all entries from the address book. +
Any key to exit clear function

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Good that you have updated the UserGuide

public CommandResult execute() {
addressBook.clear();
return new CommandResult(MESSAGE_SUCCESS);
System.out.println("Confirm to clear the entire address book? YES to continue");

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Simple but a useful change!

@RubaP RubaP added the Reviewed label Feb 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants