package seedu.task.logic.commands;


/**
 * Lists all tasks in the task manager to the user.
 */
//@@author A0142360U
public class RedoCommand extends Command {

    public static final String COMMAND_WORD = "redo";
    public static final String SHORTCUT = "r";
    public static final String MESSAGE_SUCCESS = "Redo Successful";
    public static final String MESSAGE_FAIL = "Redo Unsuccessful";


    public RedoCommand() {}

    @Override
    public CommandResult execute() {
        boolean success = model.redoTask();
        if (success)
            return new CommandResult(MESSAGE_SUCCESS);
        return new CommandResult(MESSAGE_FAIL);
    }
}

@@ -310,23 +310,44 @@
  = %22
-Redo Successful
+Your Undo command has been reversed.
 %22;%0A 
@@ -396,25 +396,45 @@
  = %22
-Redo Unsuccessful
+No more Undo command can be reversed.
 %22;%0A%0A

Change message of redo command