forked from se-edu/addressbook-level2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
proposed enhancements for issue se-edu#233
- Loading branch information
1 parent
157fcf1
commit 4a91a8c
Showing
4 changed files
with
72 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,25 +47,25 @@ | |
|| 0 persons listed! | ||
|| =================================================== | ||
|| Enter command: || [Command entered: add wrong args wrong args] | ||
|| Invalid command format! | ||
|| Invalid command format! | ||
|| add: Adds a person to the address book. Contact details can be marked private by prepending 'p' to the prefix. | ||
|| Parameters: NAME [p]p/PHONE [p]e/EMAIL [p]a/ADDRESS [t/TAG]... | ||
|| Example: add John Doe p/98765432 e/[email protected] a/311, Clementi Ave 2, #02-25 t/friends t/owesMoney | ||
|| =================================================== | ||
|| Enter command: || [Command entered: add Valid Name 12345 e/[email protected] a/valid, address] | ||
|| Invalid command format! | ||
|| Invalid command format! | ||
|| add: Adds a person to the address book. Contact details can be marked private by prepending 'p' to the prefix. | ||
|| Parameters: NAME [p]p/PHONE [p]e/EMAIL [p]a/ADDRESS [t/TAG]... | ||
|| Example: add John Doe p/98765432 e/[email protected] a/311, Clementi Ave 2, #02-25 t/friends t/owesMoney | ||
|| =================================================== | ||
|| Enter command: || [Command entered: add Valid Name p/12345 [email protected] a/valid, address] | ||
|| Invalid command format! | ||
|| Invalid command format! | ||
|| add: Adds a person to the address book. Contact details can be marked private by prepending 'p' to the prefix. | ||
|| Parameters: NAME [p]p/PHONE [p]e/EMAIL [p]a/ADDRESS [t/TAG]... | ||
|| Example: add John Doe p/98765432 e/[email protected] a/311, Clementi Ave 2, #02-25 t/friends t/owesMoney | ||
|| =================================================== | ||
|| Enter command: || [Command entered: add Valid Name p/12345 e/[email protected] valid, address] | ||
|| Invalid command format! | ||
|| Invalid command format! | ||
|| add: Adds a person to the address book. Contact details can be marked private by prepending 'p' to the prefix. | ||
|| Parameters: NAME [p]p/PHONE [p]e/EMAIL [p]a/ADDRESS [t/TAG]... | ||
|| Example: add John Doe p/98765432 e/[email protected] a/311, Clementi Ave 2, #02-25 t/friends t/owesMoney | ||
|
@@ -86,66 +86,66 @@ | |
|| Tags names should be alphanumeric | ||
|| =================================================== | ||
|| Enter command: || [Command entered: add Adam Brown p/111111 e/[email protected] a/111, alpha street] | ||
|| New person added: Adam Brown Phone: 111111 Email: [email protected] Address: 111, alpha street Tags: | ||
|| New person added: Adam Brown Phone: 111111 Email: [email protected] Address: 111, alpha street Tags: [NONE] | ||
|| =================================================== | ||
|| Enter command: || [Command entered: list] | ||
|| 1. Adam Brown Phone: 111111 Email: [email protected] Address: 111, alpha street Tags: | ||
|| | ||
|| 1. Adam Brown Phone: 111111 Email: [email protected] Address: 111, alpha street Tags: [NONE] | ||
|| | ||
|| 1 persons listed! | ||
|| =================================================== | ||
|| Enter command: || [Command entered: add Betsy Choo pp/222222 pe/[email protected] pa/222, beta street t/secretive] | ||
|| New person added: Betsy Choo Phone: (private) 222222 Email: (private) [email protected] Address: (private) 222, beta street Tags: [secretive] | ||
|| =================================================== | ||
|| Enter command: || [Command entered: list] | ||
|| 1. Adam Brown Phone: 111111 Email: [email protected] Address: 111, alpha street Tags: | ||
|| 2. Betsy Choo Tags: [secretive] | ||
|| | ||
|| 1. Adam Brown Phone: 111111 Email: [email protected] Address: 111, alpha street Tags: [NONE] | ||
|| 2. Betsy Choo Tags: [secretive] | ||
|| | ||
|| 2 persons listed! | ||
|| =================================================== | ||
|| Enter command: || [Command entered: add Charlie Dickson pp/333333 e/[email protected] a/333, gamma street t/friends t/school] | ||
|| New person added: Charlie Dickson Phone: (private) 333333 Email: [email protected] Address: 333, gamma street Tags: [school][friends] | ||
|| =================================================== | ||
|| Enter command: || [Command entered: list] | ||
|| 1. Adam Brown Phone: 111111 Email: [email protected] Address: 111, alpha street Tags: | ||
|| 2. Betsy Choo Tags: [secretive] | ||
|| 3. Charlie Dickson Email: [email protected] Address: 333, gamma street Tags: [school][friends] | ||
|| | ||
|| 1. Adam Brown Phone: 111111 Email: [email protected] Address: 111, alpha street Tags: [NONE] | ||
|| 2. Betsy Choo Tags: [secretive] | ||
|| 3. Charlie Dickson Email: [email protected] Address: 333, gamma street Tags: [school][friends] | ||
|| | ||
|| 3 persons listed! | ||
|| =================================================== | ||
|| Enter command: || [Command entered: add Dickson Ee p/444444 pe/[email protected] a/444, delta street t/friends] | ||
|| New person added: Dickson Ee Phone: 444444 Email: (private) [email protected] Address: 444, delta street Tags: [friends] | ||
|| =================================================== | ||
|| Enter command: || [Command entered: list] | ||
|| 1. Adam Brown Phone: 111111 Email: [email protected] Address: 111, alpha street Tags: | ||
|| 2. Betsy Choo Tags: [secretive] | ||
|| 3. Charlie Dickson Email: [email protected] Address: 333, gamma street Tags: [school][friends] | ||
|| 4. Dickson Ee Phone: 444444 Address: 444, delta street Tags: [friends] | ||
|| | ||
|| 1. Adam Brown Phone: 111111 Email: [email protected] Address: 111, alpha street Tags: [NONE] | ||
|| 2. Betsy Choo Tags: [secretive] | ||
|| 3. Charlie Dickson Email: [email protected] Address: 333, gamma street Tags: [school][friends] | ||
|| 4. Dickson Ee Phone: 444444 Address: 444, delta street Tags: [friends] | ||
|| | ||
|| 4 persons listed! | ||
|| =================================================== | ||
|| Enter command: || [Command entered: add Esther Potato p/555555 e/[email protected] pa/555, epsilon street t/tubers t/starchy] | ||
|| New person added: Esther Potato Phone: 555555 Email: [email protected] Address: (private) 555, epsilon street Tags: [tubers][starchy] | ||
|| =================================================== | ||
|| Enter command: || [Command entered: list] | ||
|| 1. Adam Brown Phone: 111111 Email: [email protected] Address: 111, alpha street Tags: | ||
|| 2. Betsy Choo Tags: [secretive] | ||
|| 3. Charlie Dickson Email: [email protected] Address: 333, gamma street Tags: [school][friends] | ||
|| 4. Dickson Ee Phone: 444444 Address: 444, delta street Tags: [friends] | ||
|| 5. Esther Potato Phone: 555555 Email: [email protected] Tags: [tubers][starchy] | ||
|| | ||
|| 1. Adam Brown Phone: 111111 Email: [email protected] Address: 111, alpha street Tags: [NONE] | ||
|| 2. Betsy Choo Tags: [secretive] | ||
|| 3. Charlie Dickson Email: [email protected] Address: 333, gamma street Tags: [school][friends] | ||
|| 4. Dickson Ee Phone: 444444 Address: 444, delta street Tags: [friends] | ||
|| 5. Esther Potato Phone: 555555 Email: [email protected] Tags: [tubers][starchy] | ||
|| | ||
|| 5 persons listed! | ||
|| =================================================== | ||
|| Enter command: || [Command entered: add Esther Potato p/555555 e/[email protected] pa/555, epsilon street t/tubers t/starchy] | ||
|| This person already exists in the address book | ||
|| =================================================== | ||
|| Enter command: || [Command entered: view] | ||
|| Invalid command format! | ||
|| Invalid command format! | ||
|| view: Views the non-private details of the person identified by the index number in the last shown person listing. | ||
|| Parameters: INDEX | ||
|| Example: view 1 | ||
|| =================================================== | ||
|| Enter command: || [Command entered: viewall] | ||
|| Invalid command format! | ||
|| Invalid command format! | ||
|| viewall: Views the non-private details of the person identified by the index number in the last shown person listing. | ||
|| Parameters: INDEX | ||
|| Example: viewall 1 | ||
|
@@ -175,10 +175,10 @@ | |
|| The person index provided is invalid | ||
|| =================================================== | ||
|| Enter command: || [Command entered: view 1] | ||
|| Viewing person: Adam Brown Phone: 111111 Email: [email protected] Address: 111, alpha street Tags: | ||
|| Viewing person: Adam Brown Phone: 111111 Email: [email protected] Address: 111, alpha street Tags: [NONE] | ||
|| =================================================== | ||
|| Enter command: || [Command entered: viewall 1] | ||
|| Viewing person: Adam Brown Phone: 111111 Email: [email protected] Address: 111, alpha street Tags: | ||
|| Viewing person: Adam Brown Phone: 111111 Email: [email protected] Address: 111, alpha street Tags: [NONE] | ||
|| =================================================== | ||
|| Enter command: || [Command entered: view 3] | ||
|| Viewing person: Charlie Dickson Email: [email protected] Address: 333, gamma street Tags: [school][friends] | ||
|
@@ -199,7 +199,7 @@ | |
|| Viewing person: Esther Potato Phone: 555555 Email: [email protected] Address: (private) 555, epsilon street Tags: [tubers][starchy] | ||
|| =================================================== | ||
|| Enter command: || [Command entered: find] | ||
|| Invalid command format! | ||
|| Invalid command format! | ||
|| find: Finds all persons whose names contain any of the specified keywords (case-sensitive) and displays them as a list with index numbers. | ||
|| Parameters: KEYWORD [MORE_KEYWORDS]... | ||
|| Example: find alice bob charlie | ||
|
@@ -218,23 +218,23 @@ | |
|| =================================================== | ||
|| Enter command: || [Command entered: find Betsy] | ||
|| 1. Betsy Choo Tags: [secretive] | ||
|| | ||
|| | ||
|| 1 persons listed! | ||
|| =================================================== | ||
|| Enter command: || [Command entered: find Dickson] | ||
|| 1. Charlie Dickson Email: [email protected] Address: 333, gamma street Tags: [school][friends] | ||
|| 2. Dickson Ee Phone: 444444 Address: 444, delta street Tags: [friends] | ||
|| | ||
|| 2. Dickson Ee Phone: 444444 Address: 444, delta street Tags: [friends] | ||
|| | ||
|| 2 persons listed! | ||
|| =================================================== | ||
|| Enter command: || [Command entered: find Charlie Betsy] | ||
|| 1. Betsy Choo Tags: [secretive] | ||
|| 2. Charlie Dickson Email: [email protected] Address: 333, gamma street Tags: [school][friends] | ||
|| | ||
|| 2. Charlie Dickson Email: [email protected] Address: 333, gamma street Tags: [school][friends] | ||
|| | ||
|| 2 persons listed! | ||
|| =================================================== | ||
|| Enter command: || [Command entered: delete] | ||
|| Invalid command format! | ||
|| Invalid command format! | ||
|| delete: Deletes the person identified by the index number used in the last person listing. | ||
|| Parameters: INDEX | ||
|| Example: delete 1 | ||
|
@@ -264,30 +264,30 @@ | |
|| Person could not be found in address book | ||
|| =================================================== | ||
|| Enter command: || [Command entered: list] | ||
|| 1. Adam Brown Phone: 111111 Email: [email protected] Address: 111, alpha street Tags: | ||
|| 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] | ||
|| | ||
|| 1. Adam Brown Phone: 111111 Email: [email protected] Address: 111, alpha street Tags: [NONE] | ||
|| 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] | ||
|| | ||
|| 4 persons listed! | ||
|| =================================================== | ||
|| Enter command: || [Command entered: delete 4] | ||
|| Deleted Person: Esther Potato Phone: 555555 Email: [email protected] Address: (private) 555, epsilon street Tags: [tubers][starchy] | ||
|| =================================================== | ||
|| Enter command: || [Command entered: list] | ||
|| 1. Adam Brown Phone: 111111 Email: [email protected] Address: 111, alpha street Tags: | ||
|| 2. Betsy Choo Tags: [secretive] | ||
|| 3. Dickson Ee Phone: 444444 Address: 444, delta street Tags: [friends] | ||
|| | ||
|| 1. Adam Brown Phone: 111111 Email: [email protected] Address: 111, alpha street Tags: [NONE] | ||
|| 2. Betsy Choo Tags: [secretive] | ||
|| 3. Dickson Ee Phone: 444444 Address: 444, delta street Tags: [friends] | ||
|| | ||
|| 3 persons listed! | ||
|| =================================================== | ||
|| Enter command: || [Command entered: delete 1] | ||
|| Deleted Person: Adam Brown Phone: 111111 Email: [email protected] Address: 111, alpha street Tags: | ||
|| Deleted Person: Adam Brown Phone: 111111 Email: [email protected] Address: 111, alpha street Tags: [NONE] | ||
|| =================================================== | ||
|| Enter command: || [Command entered: list] | ||
|| 1. Betsy Choo Tags: [secretive] | ||
|| 2. Dickson Ee Phone: 444444 Address: 444, delta street Tags: [friends] | ||
|| | ||
|| 2. Dickson Ee Phone: 444444 Address: 444, delta street Tags: [friends] | ||
|| | ||
|| 2 persons listed! | ||
|| =================================================== | ||
|| Enter command: || [Command entered: clear] | ||
|