forked from nus-cs2103-AY2324S1/tp
-
Notifications
You must be signed in to change notification settings - Fork 4
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 #190 from sheryew/UG-MORE-TESTS
Updated UG and DG.
- Loading branch information
Showing
6 changed files
with
45 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -129,6 +129,7 @@ Examples: | |
|
||
- `add n/Adam p/12345678 e/[email protected] a/Singapore s/10000 b/5000 d/Engineering dob/2000-01-01` | ||
- `add n/John Doe p/87654321 e/[email protected] a/Tokyo s/5000 b/2000 d/Sales dob/1992-07-21` | ||
- `add n/Tharman Shanmugaratnam p/98723459 e/[email protected] a/Istana, Singapore s/10000 b/10000 d/President dob/1957-02-25` | ||
|
||
Executing command: `add n/Adam p/12345678 e/[email protected] a/Singapore s/10000 b/5000 d/Engineering dob/2000-01-01` | ||
|
||
|
@@ -144,6 +145,7 @@ Examples: | |
|
||
- `list` Lists all employees in the employee list. | ||
- `list d/Engineering` Lists all employees in the Engineering department. | ||
- `list d/Sales` Lists all employees in the Sales department. | ||
|
||
Executing command: `list d/Engineering` | ||
|
||
|
@@ -165,6 +167,7 @@ Examples: | |
|
||
- `list` followed by `delete 2` deletes the 2nd person in the employee list. | ||
- `find Betsy` followed by `delete 1` deletes the 1st person in the results of the `find` command. | ||
- `list d/Engineering` followed by `delete 1` deletes the 1st person in the employee list. | ||
|
||
Executing command: `delete 1` | ||
|
||
|
@@ -188,7 +191,8 @@ Format: `edit INDEX [n/NAME] [p/PHONE] [e/EMAIL] [a/ADDRESS] [s/SALARY] [d/DEPAR | |
Examples: | ||
|
||
- `edit 1 p/23423423 e/[email protected]` Edits the phone number and email address of the 1st person to be `23423423` and `[email protected]` respectively. | ||
- `edit 1 n/thomas S/O anthony` Edits the name of the 1st person to be `thomas S/O anthony`. | ||
- `edit 1 n/thomas S/O anthony a/Serangoon` Edits the name and address of the 1st person to be `thomas S/O anthony` and `Serangoon` respectively. | ||
- `edit 2 s/1000 d/Sales dob/2000-01-01` Edits the salary, department and DOB of the 2nd person to be `$1000`, `Sales` and `1 January 2000` respectively. | ||
|
||
Executing command: `edit 1 p/23423423 e/[email protected]` | ||
|
||
|
@@ -213,6 +217,7 @@ Examples: | |
|
||
- `find John` returns `john` and `John Doe` | ||
- `find alex david` returns `Alex Yeoh`, `David Li`<br> | ||
- `find Bernice` returns `bernice`. | ||
|
||
Executing command: `find Bernice` | ||
|
||
|
@@ -246,6 +251,7 @@ Examples: | |
|
||
- `list` followed by `claim 1 $/-500` deducts $50 from employee 1's claim budget. | ||
- `list` followed by `claim 2 $/+60` allocates additional $60 to employee 2's claim budget. | ||
- `list` followed by `claim 3 $-1000` deducts $1000 from employee 3's claim budget. | ||
|
||
Executing command: `claim 1 $/-500` | ||
|
||
|
@@ -267,6 +273,7 @@ Format: `leave INDEX m/MONTHS` | |
Examples: | ||
- `list` followed by `leave 1 m/3,4` adds leaves in March and April for the 1st employee in the list. | ||
- `list` followed by `leave 3 m/11,-12` adds a leave in Nov and removes a leave in Dec for the 3rd employee in the list. | ||
- `list` followed by `leave 2 m/3` adds a leave in March for the 2nd employee in the list. | ||
|
||
Executing command: `leave 1 m/1,3` | ||
|
||
|
@@ -339,7 +346,9 @@ Format: `view [n/INDEX] [a/INDEX] [e/INDEX] [p/INDEX] [s/INDEX] [b/INDEX] [d/IN | |
- INDEX parameters can either be a single digit or digits separated by ",". | ||
|
||
Examples: | ||
- `view` followed by `s/1,2` displays employees with list's index of 1 and 2 respective salaries. | ||
- `view s/1,2` displays the 1st and 2nd employee respective salaries. | ||
- `view a/3,4` displays the 3rd and 4th employee respective addresses. | ||
- `view dob/1,5` displays the 1st and 5th employee respective DOB. | ||
|
||
Executing command: `view p/1,5` | ||
|
||
|
@@ -357,6 +366,7 @@ Format: `sort name / phone / email / address / salary / claim / dep / dob [desc] | |
Examples: | ||
- `sort name` to sort the employee list based on name in ascending order. | ||
- `sort salary desc` to sort the employee list based on salary in descending order. | ||
- `sort claim` to sort the employee list based on claim budget in ascending order. | ||
|
||
Executing command: `sort name desc` | ||
|
||
|
@@ -398,6 +408,7 @@ Format: `export [file_name]` | |
Examples: | ||
- `list` followed by `export all_data` will download all employees' attributes into a csv file. | ||
- `list d/Engineering` then `export engineering_team` will only download employees in engineering department. | ||
- `birthday m/1` then `export birthday_Jan` will only download employees with birthdays in January. | ||
|
||
![ExportCSVBeforeAfter](images/export.png) | ||
|
||
|
@@ -412,6 +423,8 @@ Current available themes: | |
|
||
Examples: | ||
- `theme red` Changes the application theme to the red theme. | ||
- `theme light` Changes the application theme to light theme. | ||
- `theme green` Changes the application theme to green theme. | ||
|
||
Executing command: `theme light` | ||
|
||
|
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.