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 branch 'master' into update-jobapp-display
- Loading branch information
Showing
20 changed files
with
119 additions
and
228 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 |
---|---|---|
|
@@ -87,9 +87,7 @@ Details specifically on organization and recruiter level are specified in the ne | |
|
||
#### Adding an organization contact: `add --org` | ||
|
||
_{Work in progress...}_ | ||
|
||
Format: `add --org --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] [--address ADDRESS] [--tag TAG]... ` | ||
|
||
|
||
Acceptable Parameters: | ||
|
@@ -123,9 +121,7 @@ Examples: | |
|
||
#### Adding a recruiter contact: `add --rec` | ||
|
||
_{Work in progress...}_ | ||
|
||
Format: `add --rec --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] [--address ADDRESS] [--tag TAG]...` | ||
|
||
|
||
Acceptable Parameters: | ||
|
@@ -236,9 +232,10 @@ Jobby data are saved automatically as a JSON file `[JAR file location]/data/jobb | |
If your changes to the data file makes its format invalid, Jobby will discard all data and start with an empty data file at the next run. Hence, it is recommended to take a backup of the file before editing it. | ||
</div> | ||
|
||
|
||
#### Applying to an Organization: `apply` | ||
|
||
Format: `apply INDEX/ID --title TITLE [--desc DESCRIPTION] [--by DEADLINE: DD-MM-YYYY] [--stage APPLICATION STAGE: resume | online assessment | interview] [--stat STATUS: pending | offered | accepted | turned down]` | ||
Format: `apply INDEX/ID --title TITLE [--description DESCRIPTION] [--by DEADLINE: DD-MM-YYYY] [--stage APPLICATION STAGE: resume | online assessment | interview] [--status STATUS: pending | offered | accepted | turned down]` | ||
|
||
Acceptable Parameters: | ||
* `TITLE` can accept any value. | ||
|
@@ -258,9 +255,9 @@ Examples: | |
|
||
* `apply id_12345_1 --title Unit Tester --by 12-12-2023` | ||
|
||
* `apply id_12345_1 --title Unit Tester --desc Unit testing for Google --by 12-12-2023 --stage resume` | ||
* `apply id_12345_1 --title Unit Tester --description Unit testing for Google --by 12-12-2023 --stage resume` | ||
|
||
* `apply id_12345_1 --title Junior Engineer --desc Junir role --by 12-12-2023 --stage resume --stat pending` | ||
* `apply id_12345_1 --title Junior Engineer --description Junior role --by 12-12-2023 --stage resume --status pending` | ||
|
||
|
||
### Deleting a job application | ||
|
@@ -276,16 +273,16 @@ Examples: | |
### Updating/Editing a job application | ||
Updates the job applications with the input fields. | ||
|
||
Format: `edit --application INDEX [--title TITLE] [--desc DESCRIPTION] [--by DEADLINE] [--stat STATUS] [--stage STAGE]` | ||
Format: `edit --application INDEX [--title TITLE] [--description DESCRIPTION] [--by DEADLINE] [--status STATUS] [--stage STAGE]` | ||
|
||
* `INDEX` refers to the index number shown on the list and must be a positive integer. | ||
* At least one of the optional fields must be specified. | ||
* `STATUS` is one of `pending`, `offered`, `accepted`, `turned down` | ||
* `STAGE` is one of `resume`, `online assessment`, `interview` | ||
|
||
Examples: | ||
* `edit --application 1 --title SWE --desc Pay: $100 per hour` | ||
* `edit --application 1 --stat rejected` | ||
* `edit --application 1 --title SWE --description Pay: $100 per hour` | ||
* `edit --application 1 --status rejected` | ||
* `edit --application 1 --stage interview` | ||
|
||
### Sorting contacts/job applications: `sort` | ||
|
@@ -353,15 +350,15 @@ Examples: | |
|
||
Action | Format, Examples | ||
----------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
**Add Organization** | `add --org --name <NAME> [--id ID] [--phone NUMBER] [--email EMAIL] [--url URL] [--addr ADDRESS] [--tag TAG]...`<br> e.g., `add --org --name NUS --phone 0123456789 --email [email protected] --url https://www.nus.edu.sg/` | ||
**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` | ||
**Add Organization** | `add --org --name <NAME> [--id ID] [--phone NUMBER] [--email EMAIL] [--url URL] [--address ADDRESS] [--tag TAG]...`<br> e.g., `add --org --name NUS --phone 0123456789 --email [email protected] --url https://www.nus.edu.sg/` | ||
**Add Recruiter** | `add --rec --name <NAME> [--id ID] [--oid ORG_ID] [--phone NUMBER] [--email EMAIL] [--url URL] [--address ADDRESS] [--tag TAG]...`<br> e.g., `add --rec --name John Doe --oid paypal-sg` | ||
**Clear** | `clear` | ||
**Delete** | `delete INDEX [--recursive]` or <br> `delete --id ID [--recursive]` <br> e.g., `delete 3`, `delete --id 55tg` | ||
**Delete** | `delete INDEX/ID [--recursive]` <br> e.g., `delete 3`, `delete id-55tg` | ||
**Edit** | `edit INDEX ...` or <br>`edit ID ...` or <br>`edit --application INDEX ...` | ||
**Find** | `find KEYWORD [MORE_KEYWORDS]`<br> e.g., `find James Jake` | ||
**Apply** | `apply INDEX [--title TITLE] [--desc DESCRIPTION] [--by DEADLINE] [--stage STAGE] [--stat STATUS]` or <br>`apply ID [--title TITLE] [--desc DESCRIPTION] [--by DEADLINE] [--stage STAGE] [--stat STATUS]` | ||
**List** | `list [--FLAG_TO_FILTER]` | ||
**Sort** | `sort [--FLAG_TO_SORT]` | ||
**Apply** | `apply INDEX/ID --title TITLE [--description DESCRIPTION] [--by DEADLINE] [--stage STAGE] [--status STATUS]` | ||
**List** | `list [--org/--rec]` | ||
**Sort** | `sort --FLAG_TO_SORT` | ||
**Help** | `help` | ||
|
||
|
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 |
---|---|---|
|
@@ -9,9 +9,7 @@ | |
import static seedu.address.logic.parser.CliSyntax.FLAG_ORGANIZATION; | ||
import static seedu.address.logic.parser.CliSyntax.FLAG_ORGANIZATION_ID; | ||
import static seedu.address.logic.parser.CliSyntax.FLAG_PHONE; | ||
import static seedu.address.logic.parser.CliSyntax.FLAG_POSITION; | ||
import static seedu.address.logic.parser.CliSyntax.FLAG_RECRUITER; | ||
import static seedu.address.logic.parser.CliSyntax.FLAG_STATUS; | ||
import static seedu.address.logic.parser.CliSyntax.FLAG_TAG; | ||
import static seedu.address.logic.parser.CliSyntax.FLAG_URL; | ||
|
||
|
@@ -53,13 +51,10 @@ public class AddCommand extends Command { | |
AutocompleteDataSet.onceForEachOf( | ||
FLAG_NAME, FLAG_ID, | ||
FLAG_PHONE, FLAG_EMAIL, FLAG_ADDRESS, FLAG_URL, | ||
FLAG_STATUS, FLAG_POSITION, | ||
FLAG_ORGANIZATION_ID | ||
), | ||
AutocompleteDataSet.anyNumberOf(FLAG_TAG) | ||
).addConstraints(List.of( | ||
AutocompleteConstraint.where(FLAG_ORGANIZATION) | ||
.isPrerequisiteFor(FLAG_STATUS, FLAG_POSITION), | ||
AutocompleteConstraint.where(FLAG_RECRUITER) | ||
.isPrerequisiteFor(FLAG_ORGANIZATION_ID) | ||
)) | ||
|
@@ -88,8 +83,6 @@ public class AddCommand extends Command { | |
+ "[" + FLAG_EMAIL + " EMAIL] " | ||
+ "[" + FLAG_URL + " URL] " | ||
+ "[" + FLAG_ADDRESS + " ADDRESS] " | ||
+ "[" + FLAG_STATUS + " STATUS] " | ||
+ "[" + FLAG_POSITION + " POSITION] " | ||
+ "[" + FLAG_TAG + " TAG]...\n" | ||
+ "Example: " + COMMAND_WORD + " " | ||
+ FLAG_ORGANIZATION + " " | ||
|
@@ -99,8 +92,6 @@ public class AddCommand extends Command { | |
+ FLAG_EMAIL + " [email protected] " | ||
+ FLAG_URL + " www.jobsinc.com " | ||
+ FLAG_ADDRESS + " 311, Clementi Ave 2, #02-25 " | ||
+ FLAG_STATUS + " applied " | ||
+ FLAG_POSITION + " Junior Software Engineer " | ||
+ FLAG_TAG + " softwareEngineering " | ||
+ FLAG_TAG + " competitive "; | ||
|
||
|
@@ -149,7 +140,12 @@ public class AddCommand extends Command { | |
|
||
/** | ||
* Creates an AddCommand to add a {@code Contact} to the address book with the given parameters. | ||
* | ||
* <p> | ||
* TODO: This class should be made abstract. | ||
* </p> | ||
*/ | ||
@Deprecated | ||
public AddCommand(Name name, Id id, Phone phone, Email email, Url url, Address address, Set<Tag> tags) { | ||
requireAllNonNull(name, id, tags); | ||
this.name = name; | ||
|
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
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
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
Oops, something went wrong.