-
Notifications
You must be signed in to change notification settings - Fork 35
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
[W5][M11-3]Lim Wan Ching #31
base: master
Are you sure you want to change the base?
Conversation
code is easy to understand, interesting add of new command, saves the user time from typing an extra "list" command since the address book will be listed after a new addition of contact. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Useful PR to print updated persons list as and when new persons are added.
Note: Proper format to write commit messages : write the summary line and description of what you have done in the imperative mode, that is as if you were commanding someone. Start the line with "Fix", "Add", "Change" instead of "Fixed", "Added", "Changed".
Kindly look at the comments for some possibilities of improvement. Please close this PR after reading them.
|| 2. Betsy Choo Tags: [secretive] | ||
|| 3. Dickson Ee Phone: 444444 Address: 444, delta street Tags: [friends] | ||
|| 4. Esther Potato Phone: 555555 Email: [email protected] Tags: [tubers][starchy] | ||
|| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to see that tests have been updated.
@@ -60,6 +60,8 @@ Put a `p` before the phone / email / address prefixes to mark it as `private`. ` | |||
be seen using the `viewall` command. | |||
|
|||
Persons can have any number of tags (including 0). | |||
|
|||
A list of the updated Address Book will be displayed after a person is successfully added. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job in updating the user guide.
@@ -66,7 +67,9 @@ public ReadOnlyPerson getPerson() { | |||
public CommandResult execute() { | |||
try { | |||
addressBook.addPerson(toAdd); | |||
return new CommandResult(String.format(MESSAGE_SUCCESS, toAdd)); | |||
List<ReadOnlyPerson> allPersons = addressBook.getAllPersons().immutableListView(); | |||
System.out.println(String.format(MESSAGE_SUCCESS, toAdd) + "\n\nUpdated Address Book:"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No description provided.