Skip to content

Commit

Permalink
Merge pull request #47 from McNaBry/update-add-UG
Browse files Browse the repository at this point in the history
Update Add Command UG
  • Loading branch information
wxwern authored Oct 19, 2023
2 parents 942eaac + 64020d3 commit 4c3128a
Showing 1 changed file with 19 additions and 16 deletions.
35 changes: 19 additions & 16 deletions docs/UserGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ title: User Guide
* Items with `...` after them can be used multiple times including zero times.<br>
e.g. `[--tag TAG]...` can be used as ` ` (i.e. 0 times), `--tag friend`, `--tag friend --tag family` etc.

* Items separated by `/` means that only one of them can be used per command.<br>
e.g. `--org/--rec` means that either `--org` or `--rec` can be supplied as a flag but not both at the same time.

* Parameters can be in any order.<br>
e.g. if the command specifies `--name NAME --phone PHONE_NUMBER`, `--phone PHONE_NUMBER --name NAME` is also acceptable.

Expand All @@ -70,20 +73,20 @@ Format: `help`

### Adding a contact: `add`

Format: `add --type CLASS <additional parameters and values...>`
Format: `add --org/--rec <additional parameters and values...>`

Adds a contact to the address book of the given class type: Organization or Recruiter.

Notice that `CLASS` must be either _Organization_ or _Recruiter_ (or any case-insensitive unambiguous prefix match, so “org” will match “Organization” automatically)
Supplying `--org` adds an Organization while supplying `--rec` adds a Recruiter to the address book.

Details specifically on organization and recruiter level are specified in the next sections.


#### Adding an organization contact: `add --type organization`
#### Adding an organization contact: `add --org`

_{Work in progress...}_

Format: `add --type o[rganization] --name NAME [--id ID] [--phone NUMBER] [--email EMAIL] [--url URL] [--addr ADDRESS] [--stat STATUS] [--pos POSITION] [--tag TAG]... `
Format: `add --org --name NAME [--id ID] [--phone NUMBER] [--email EMAIL] [--url URL] [--addr ADDRESS] [--stat STATUS] [--pos POSITION] [--tag TAG]... `


Acceptable Parameters:
Expand All @@ -108,22 +111,22 @@ Acceptable Parameters:


Examples:
* `add --name J&J --type Organization`
* `add --org --name J&J`

* `add --name Google --type Org --id g-sg --phone 98765432 `
* `add --org --name Google --id g-sg --phone 98765432 `

* `add --name Hoyoverse --type organization --email mihoyo@example.com --tag example1 --tag example2`
* `add --org --name Hoyoverse --email mihoyo@example.com --tag example1 --tag example2`

* `add --name Example --type organi --url www.organization.org --tag freelance work`
* `add --org --name Example --url www.organization.org --tag freelance`

* `add --type o --name Examinations NUS --phone 65166269 --email examinations@nus.edu.sg --url https://luminus.nus.edu.sg/ --stat pending`
* `add --org --name Examinations NUS --phone 65166269 --email examinations@nus.edu.sg --url https://luminus.nus.edu.sg/ --stat pending`


### Adding a recruiter: `add --type recruiter`
#### Adding a recruiter contact: `add --rec`

_{Work in progress...}_

Format: `add --type r[ecruiter] --name NAME [-id ID] [--oid ORG_ID] [--phone NUMBER] [--email EMAIL] [--url URL] [--addr ADDRESS] [--tag TAG]...`
Format: `add --rec --name NAME [-id ID] [--oid ORG_ID] [--phone NUMBER] [--email EMAIL] [--url URL] [--addr ADDRESS] [--tag TAG]...`


Acceptable Parameters:
Expand All @@ -132,19 +135,19 @@ Acceptable Parameters:
* `ID` refers to a unique identifier which is used to uniquely identify the recruiter (alphanumeric and basic symbols, i.e. should only be `a-z`, `A-Z`, `0-9`, `-`, `_`).
* Specifying this sets the ID, or one unique one will be derived and generated from the name if not provided.

* `ORG_ID` refers to the unique identifier which is used to uniquely identify the organization the recruiter should be tied to.
* `ORG_ID` refers to the unique identifier which is used to uniquely identify the organization the recruiter should be tied to. It is subject to the same validation as the ID field.

* `NUMBER` should be a valid phone number.

* `EMAIL` should be a valid email.

* `ADDRESS` can accept any value. It designates the contact’s physical address.

* `TAG `can accept any value and may have multiple inputs.
* `TAG` can accept any value and may have multiple inputs.


Examples:
* `add --name John Doe --type Recruiter --oid paypal-sg`
* `add --rec --name John Doe --oid paypal-sg`


### Listing all contacts: `list`
Expand Down Expand Up @@ -248,8 +251,8 @@ If your changes to the data file makes its format invalid, Jobby will discard al

Action | Format, Examples
--------|------------------
**Add Organization** | `add --type o[rganization] --name <NAME> [--id ID] [--phone NUMBER] [--email EMAIL] [--url URL] [--addr ADDRESS] [--stat STATUS] [--pos POSITION] [--tag TAG]...`<br> e.g., `add --type o --name NUS --phone 0123456789 --email example@nus.edu.sg --url https://www.nus.edu.sg/ --stat pending --pos Research`
**Add Recruiter** | `add --type r[ecruiter] --name <NAME> [--id ID] [--oid ORG_ID] [--phone NUMBER] [--email EMAIL] [--url URL] [--addr ADDRESS] [--tag TAG]...`<br> e.g., `add --name John Doe --type Recruiter --oid paypal-sg`
**Add Organization** | `add --org --name <NAME> [--id ID] [--phone NUMBER] [--email EMAIL] [--url URL] [--addr ADDRESS] [--stat STATUS] [--pos POSITION] [--tag TAG]...`<br> e.g., `add --org --name NUS --phone 0123456789 --email example@nus.edu.sg --url https://www.nus.edu.sg/ --stat pending --pos Research`
**Add Recruiter** | `add --rec --name <NAME> [--id ID] [--oid ORG_ID] [--phone NUMBER] [--email EMAIL] [--url URL] [--addr ADDRESS] [--tag TAG]...`<br> e.g., `add --rec --name John Doe --oid paypal-sg`
**Clear** | `clear`
**Delete** | `delete INDEX`<br> e.g., `delete 3`
**Edit** | Coming soon...
Expand Down

0 comments on commit 4c3128a

Please sign in to comment.