@@ -0,0 +1,1250 @@
+//@@author A0144939R%0Apackage seedu.task.logic.commands;%0A%0Aimport seedu.task.commons.core.EventsCenter;%0Aimport seedu.task.commons.events.storage.FilePathChangedEvent;%0A%0A/**%0A * Alias command%0A */%0Apublic class AliasCommand extends UndoableCommand %7B%0A    %0A    public static final String COMMAND_WORD = %22alias%22;%0A    %0A    public static final String MESSAGE_USAGE = COMMAND_WORD + %22: Aliases a command to a given string %22%0A            + %22Parameters: ALIASED VALUE%22%0A            + %22Example: %22 + COMMAND_WORD%0A            + %22add a%22;%0A    %0A    public static final String MESSAGE_SUCCESS = %22Command successfully aliased%22;%0A    public static final String MESSAGE_FAILURE = %22Error, cannot alias command%22;%0A    %0A    private String command;%0A    private String alias;%0A    %0A    %0A    public AliasCommand(String command, String alias) %7B%0A        this.command = command.trim();%0A        this.alias = alias.trim();%0A    %7D%0A    %0A    %0A%0A    @Override%0A    public CommandResult execute() %7B%0A      try %7B  %0A          model.setMapping(command, alias);%0A          return new CommandResult(true, MESSAGE_SUCCESS);%0A      %7D catch(Exception e) %7B%0A          return new CommandResult(false, MESSAGE_FAILURE);%0A      %7D%0A    %7D%0A%0A    @Override%0A    public CommandResult rollback() %7B%0A        %0A        %0A    %7D%0A%7D%0A%0A

Add alias command