Skip to content

Commit

Permalink
Merge pull request #108 from highorbit25/update-ug-sort-participate
Browse files Browse the repository at this point in the history
Update UG for Sort, Participate, Unparticipate
  • Loading branch information
comicalromance authored Oct 27, 2022
2 parents 21f3e37 + 6095983 commit c16255a
Showing 1 changed file with 56 additions and 6 deletions.
62 changes: 56 additions & 6 deletions docs/UserGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,26 @@ If your changes to the data file makes its format invalid, StudMap will discard

### Sorting the students: `sort`

[Coming soon]
Sorts the list by the specified attribute in the specified order.

Format: `sort ORDER a/ATTRIBUTE`

- `ORDER` should be `asc` for ascending and `dsc` for descending order
- `ATTRIBUTE` currently supported are
- `NAME`
- `MODULE`
- `PHONE`
- `ID`
- `GIT`
- `HANDLE`
- `EMAIL`
- `ATTENDANCE`

Examples:

* `sort asc a/name`
* `sort dsc a/phone`
* `sort asc a/attendance`

### Filtering the students: `filter`

Expand All @@ -202,6 +221,36 @@ If your changes to the data file makes its format invalid, StudMap will discard

[Coming soon]

### Recording participation of a student: `participate`

Record participation of student(s)

Format: `participate INDEX/ALL STATUS p/COMPONENT`

- `INDEX` could be specified or use `ALL` to record participation component for all students in the list
- `STATUS` is either `yes` for participated or `no` for not participated
- `COMPONENT` is the participation component

Examples:

* `participate 1 yes p/P01`
* `participate 1 no p/P02`
* `participate all yes p/P03`

### Removing participation of a student: `unparticipate`

Remove participation of student(s)

Format: `unparticipate INDEX/ALL p/COMPONENT`

- `INDEX` could be specified or use `ALL` to remove specified participation component for all students in the list
- `COMPONENT` is the participation component

Examples:

* `unparticipate 1 p/P01`
* `unparticipate all p/P03 `


--------------------------------------------------------------------------------------------------------------------

Expand All @@ -217,17 +266,18 @@ the data of your previous StudMap home folder.

Action | Format, Examples
--------|------------------
**
Add** | `add n/NAME m/MODULE s/ID [p/PHONE] [e/EMAIL] [g/GITNAME] [h/HANDLE] [t/TAG]…​` <br> e.g., `add n/John Doe p/98765432 e/johnd@example.com m/CS2103T s/E1234567 g/user1 h/@user1 t/friends t/owesMoney`

**Add** | `add n/NAME m/MODULE s/ID [p/PHONE] [e/EMAIL] [g/GITNAME] [h/HANDLE] [t/TAG]…​` <br> e.g., `add n/John Doe p/98765432 e/johnd@example.com m/CS2103T s/E1234567 g/user1 h/@user1 t/friends t/owesMoney`
**Clear** | `clear`
**Delete** | `delete INDEX`<br> e.g., `delete 3`
**
Edit** | `edit INDEX [n/NAME] [p/PHONE] [e/EMAIL] [m/MODULE] [s/ID] [g/GITUSER] [h/TELEHANDLE] [t/TAG]…​` <br> e.g.,`edit 1 p/91234567 e/johndoe@example.com`
**Edit** | `edit INDEX [n/NAME] [p/PHONE] [e/EMAIL] [m/MODULE] [s/ID] [g/GITUSER] [h/TELEHANDLE] [t/TAG]…​` <br> e.g.,`edit 1 p/91234567 e/johndoe@example.com`
**Find** | `find KEYWORD [MORE_KEYWORDS]`<br> e.g., `find James Jake`
**List** | `list`
**Help** | `help`
**Sort** | `sort`
**Sort** | `sort ORDER a/ATTRIBUTE`
**Filter** | `filter`
**Mark** | `mark`
**Unmark** | `unmark`
**Add tag** | `addtag`
**Record participation** | `participate INDEX/ALL STATUS p/COMPONENT`
**Remove participation** | `unparticipate INDEX/ALL p/COMPONENT`

0 comments on commit c16255a

Please sign in to comment.