forked from nus-cs2103-AY2324S1/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.
Merge pull request #48 from Jweng88/update-ug-tutor-delete
Add delete-t command to UG
- Loading branch information
Showing
2 changed files
with
25 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -194,6 +194,30 @@ Adds a schedule to a specified tutor. | |
* `Wrong input: s/`: The start time entered is not in datetime format. | ||
* `Wrong input: e/`: The end time entered is not in datetime format.. | ||
|
||
### Deleting a tutor: `delete-t` | ||
|
||
Deletes a tutor in the address book based on their index number in the table. | ||
|
||
![delete tutor](images/deleteTutor.png) | ||
|
||
**Format**: `delete-t TUTOR_INDEX` | ||
|
||
**Examples**: | ||
* `delete-t 5` deletes the tutor that is indexed as 5 in the address book. | ||
* `list` followed by `delete-t 2` deletes the 2nd person in the address book. | ||
|
||
**Acceptable values for each parameter**: | ||
* `TUTOR_INDEX`: Only accepts numerical value | ||
|
||
**Expected output**: | ||
* `Tutor has been deleted: Alex Yeoh; Phone: 87438807; | ||
Email: [email protected]; Address: Blk 30 Geylang Street 29, #06-40` | ||
|
||
**Error messages**: | ||
* `Index number given is out of range`: Given index is out of range. | ||
* `Invalid parameter given`: Parameter given is not a numerical value. | ||
|
||
|
||
|
||
|
||
_Details coming soon ..._ | ||
|
@@ -220,7 +244,7 @@ _Details coming soon ..._ | |
| **Add Tutor** | `add-t n/NAME p/PHONE NUMBER e/EMAIL` <br> e.g., `add-t n/John Doe p/98765432 e/[email protected]` | | ||
| **Add Schedule** | `add-s ti/TUTOR_INDEX s/START_TIME e/END_TIME` <br> e.g., `add-s ti/1 s/2023-09-15T09:00:00 e/2023-09-15T11:00:00` | | ||
| **Clear** | `clear` | | ||
| **Delete** | `delete INDEX`<br> e.g., `delete 3` | | ||
| **Delete Tutor** | `delete-t TUTOR_INDEX`<br> e.g., `delete-t 3` | | ||
| **Edit** | `edit INDEX [n/NAME] [p/PHONE_NUMBER] [e/EMAIL] [a/ADDRESS] [t/TAG]…`<br> e.g.,`edit 2 n/James Lee e/[email protected]` | | ||
| **Find** | `find KEYWORD [MORE_KEYWORDS]`<br> e.g., `find James Jake` | | ||
| **List Tutor** | `list-t` | | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.