forked from nus-cs2103-AY2122S2/tp
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f25bb3d
commit 711a340
Showing
1 changed file
with
58 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -101,6 +101,20 @@ After adding: | |
Notes: | ||
* Any tags are optional. | ||
|
||
### Adding a tag to a person: `addTag` | ||
|
||
Adds a tag to the specified person in ClientConnect. | ||
|
||
Format: `addTag INDEX TAG …` | ||
|
||
Examples: | ||
* `addTag 3 friend of the family` | ||
* `addTag 2 owes money :p2` | ||
|
||
Notes: | ||
* Adds tag to the person at the specified `INDEX`. | ||
* Only one tag can be added at a time | ||
|
||
### Listing all persons : `list` | ||
|
||
Displays all your clients in ClientConnect. | ||
|
@@ -133,6 +147,22 @@ Notes: | |
* At least one of the fields must be provided. | ||
* Existing values will be updated to the input values. | ||
|
||
|
||
### Editing a tag of a person: `editTag` | ||
|
||
Edits the specified tag of the specified person by replacing it with the new tag given in ClientConnect. | ||
|
||
Format: `editTag INDEX TAG_NUMBER TAG …` | ||
|
||
Examples: | ||
* `editTag 3 1 friend of the family` | ||
* `editTag 2 3 owes money :p2` | ||
|
||
Notes: | ||
* Edits person at the specified `INDEX`. | ||
* Edits person's tag at the specified `TAG_NUMBER`. | ||
* Only one tag can be edited at a time. | ||
|
||
### Locating persons by field: `find` | ||
|
||
Finds clients whose field contains any of the given keywords. | ||
|
@@ -190,6 +220,21 @@ After `delete 2`: | |
|
||
![result after 'delete 2'](images/afterDeleteUG.png) | ||
|
||
### Deleting a tag of a person: `deleteTag` | ||
|
||
Deletes the specified tag of the specified person in ClientConnect. | ||
|
||
Format: `deleteTag INDEX TAG_NUMBER …` | ||
|
||
Examples: | ||
* `deleteTag 3 1` | ||
* `deleteTag 2 3` | ||
|
||
Notes: | ||
* Deletes person at the specified `INDEX`. | ||
* Deletes person's tag at the specified `TAG_NUMBER`. | ||
* Only one tag can be deleted at a time. | ||
|
||
### Clearing all entries : `clear` | ||
|
||
Clears all entries from the address book. | ||
|
@@ -222,16 +267,19 @@ Format: `exit` | |
|
||
## Command summary | ||
|
||
| Action | Format, Examples| | ||
|------------|------------------| | ||
| **Add** | `add n/NAME p/PHONE_NUMBER e/EMAIL a/ADDRESS i/INSURANCE_PACKAGE [t/TAG]…` <br> e.g., `add n/James Ho p/22224444 e/[email protected] a/123, Clementi Rd, 1234665 i/package1 t/friend t/colleague`| | ||
| **Delete** | `delete INDEX`<br> e.g., `delete 3`| | ||
| **Edit** | `edit INDEX [n/NAME] [p/PHONE_NUMBER] [e/EMAIL] [a/ADDRESS] [i/INSURANCE_PACKAGE] [t/TAG]…`<br> e.g.,`edit 2 n/James Lee e/[email protected]`| | ||
| **Find** | `find FIELD KEYWORD [MORE_KEYWORDS]`<br> e.g., `find n/James Jake`| | ||
| **Clip** | `clip n/NAME`<br> e.g., `find n/John Doe`| | ||
| **List** | `list`| | ||
| **Help** | `help`| | ||
| **Exit** | `exit`| | ||
| Action | Format, Examples | | ||
|----------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ||
| **Add** | `add n/NAME p/PHONE_NUMBER e/EMAIL a/ADDRESS i/INSURANCE_PACKAGE [t/TAG]…` <br> e.g., `add n/James Ho p/22224444 e/[email protected] a/123, Clementi Rd, 1234665 i/package1 t/friend t/colleague` | | ||
| **Add Tag** | `addTag INDEX TAG`<br> e.g., `addTag 3 owes money :p2` | | ||
| **Delete** | `delete INDEX`<br> e.g., `delete 3` | | ||
| **Delete Tag** | `deleteTag INDEX TAG_NUMBER` <br> e.g.,`deleteTag 3 2` | | ||
| **Edit** | `edit INDEX [n/NAME] [p/PHONE_NUMBER] [e/EMAIL] [a/ADDRESS] [i/INSURANCE_PACKAGE] [t/TAG]…`<br> e.g.,`edit 2 n/James Lee e/[email protected]` | | ||
| **Edit Tag** | `editTag INDEX TAG_NUMBER TAG`<br> e.g.,`edit 2 3 friend of family` | | ||
| **Find** | `find FIELD KEYWORD [MORE_KEYWORDS]`<br> e.g., `find n/James Jake` | | ||
| **Clip** | `clip n/NAME`<br> e.g., `find n/John Doe` | | ||
| **List** | `list` | | ||
| **Help** | `help` | | ||
| **Exit** | `exit` | | ||
|
||
Fields: | ||
* `n/`: name | ||
|