Skip to content

Commit

Permalink
Merge pull request nus-cs2103-AY2324S1#95 from AY2324S1-CS2103T-F08-2…
Browse files Browse the repository at this point in the history
…/revert-90-convertlead

Revert "Add Convertion of class"
  • Loading branch information
garylow2001 authored Oct 26, 2023
2 parents c90c4fc + 8b93e8d commit 3e2b2c1
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 351 deletions.

This file was deleted.

This file was deleted.

10 changes: 1 addition & 9 deletions src/main/java/seedu/address/logic/parser/AddressBookParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
import seedu.address.logic.commands.AddLeadCommand;
import seedu.address.logic.commands.ClearCommand;
import seedu.address.logic.commands.Command;
import seedu.address.logic.commands.ConvertClientToLeadCommand;
import seedu.address.logic.commands.ConvertLeadToClientCommand;
import seedu.address.logic.commands.DeleteCommand;
import seedu.address.logic.commands.EditCommand;
import seedu.address.logic.commands.ExitCommand;
Expand Down Expand Up @@ -91,16 +89,10 @@ public Command parseCommand(String userInput) throws ParseException {

case ListLeadCommand.COMMAND_WORD:
return new ListLeadCommand();

case ConvertLeadToClientCommand.COMMAND_WORD:
return new ConvertLeadToClientCommandParser().parse(arguments);

case ConvertClientToLeadCommand.COMMAND_WORD:
return new ConvertClientToLeadCommandParser().parse(arguments);

case ViewCommand.COMMAND_WORD:
return new ViewCommandParser().parse(arguments);

default:
logger.finer("This user input caused a ParseException: " + userInput);
throw new ParseException(MESSAGE_UNKNOWN_COMMAND);
Expand Down
16 changes: 11 additions & 5 deletions src/main/java/seedu/address/logic/parser/CliSyntax.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,16 @@
public class CliSyntax {

/* Prefix definitions */
public static final Prefix PREFIX_NAME = new Prefix("--name ");
public static final Prefix PREFIX_PHONE = new Prefix("--phone ");
public static final Prefix PREFIX_EMAIL = new Prefix("--email ");
public static final Prefix PREFIX_ADDRESS = new Prefix("--address ");
public static final Prefix PREFIX_TAG = new Prefix("--tag ");
public static final Prefix PREFIX_NAME = new Prefix("n/");
public static final Prefix PREFIX_PHONE = new Prefix("p/");
public static final Prefix PREFIX_EMAIL = new Prefix("e/");
public static final Prefix PREFIX_ADDRESS = new Prefix("a/");
public static final Prefix PREFIX_TAG = new Prefix("t/");

public static final Prefix PREFIX_NAME_TP = new Prefix("--name");
public static final Prefix PREFIX_PHONE_TP = new Prefix("--phone");
public static final Prefix PREFIX_EMAIL_TP = new Prefix("--email");
public static final Prefix PREFIX_ADDRESS_TP = new Prefix("--address");
public static final Prefix PREFIX_TAG_TP = new Prefix("--tag");

}

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 3e2b2c1

Please sign in to comment.