forked from AY2425S1-CS2103T-F14a-4/tp
-
Notifications
You must be signed in to change notification settings - Fork 0
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 AY2425S1-CS2103T-F14a-4#200
Standardize error messages across commands
- Loading branch information
Showing
13 changed files
with
21 additions
and
546 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
36 changes: 0 additions & 36 deletions
36
src/main/java/seedu/address/logic/commands/FindByEmailCommand.java
This file was deleted.
Oops, something went wrong.
35 changes: 0 additions & 35 deletions
35
src/main/java/seedu/address/logic/commands/FindByNameCommand.java
This file was deleted.
Oops, something went wrong.
34 changes: 0 additions & 34 deletions
34
src/main/java/seedu/address/logic/commands/FindByPhoneCommand.java
This file was deleted.
Oops, something went wrong.
35 changes: 0 additions & 35 deletions
35
src/main/java/seedu/address/logic/commands/FindByTagCommand.java
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
package seedu.address.logic.commands; | ||
|
||
import static java.util.Objects.requireNonNull; | ||
import static seedu.address.logic.parser.CliSyntax.PREFIX_EMAIL; | ||
import static seedu.address.logic.parser.CliSyntax.PREFIX_NAME; | ||
import static seedu.address.logic.parser.CliSyntax.PREFIX_PHONE; | ||
import static seedu.address.logic.parser.CliSyntax.PREFIX_TAG; | ||
|
||
import seedu.address.commons.util.ToStringBuilder; | ||
import seedu.address.logic.Messages; | ||
|
@@ -13,20 +17,14 @@ | |
public class SuperFindCommand extends Command { | ||
|
||
public static final String COMMAND_WORD = "find"; | ||
public static final String NAME_COMMAND_WORD = " n/"; | ||
public static final String EMAIL_COMMAND_WORD = " e/"; | ||
public static final String PHONE_COMMAND_WORD = " p/"; | ||
public static final String TAG_COMMAND_WORD = " t/"; | ||
|
||
public static final String MESSAGE_USAGE = COMMAND_WORD + ": Finds all persons whose names, phone numbers, emails " | ||
+ "or tags contain any of the specified keywords (case-insensitive) and displays" | ||
+ "or tags contain any of the specified keywords (case-insensitive) and displays " | ||
+ "them as a list with indices.\n" | ||
+ "Parameters: KEYWORD [MORE_KEYWORDS]...\n" | ||
+ "Example:\n" | ||
+ COMMAND_WORD + NAME_COMMAND_WORD + "alice bob charlie\n" | ||
+ COMMAND_WORD + EMAIL_COMMAND_WORD + "[email protected]\n" | ||
+ COMMAND_WORD + PHONE_COMMAND_WORD + "12345678\n" | ||
+ COMMAND_WORD + TAG_COMMAND_WORD + "CS2100_classmate\n"; | ||
+ "Parameters: PREFIX/KEYWORD [PREFIX/MORE_KEYWORDS]...\n" | ||
+ "Examples:\n" | ||
+ COMMAND_WORD + " " + PREFIX_NAME + "alice " + PREFIX_PHONE + "80021234 " + PREFIX_TAG + "CS1101S\n" | ||
+ COMMAND_WORD + " " + PREFIX_EMAIL + "[email protected] " + PREFIX_EMAIL + "[email protected]"; | ||
|
||
public static final String MESSAGE_NO_PERSONS_FOUND = "No persons found!"; | ||
|
||
|
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
88 changes: 0 additions & 88 deletions
88
src/test/java/seedu/address/logic/commands/FindByEmailCommandTest.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.