package seedu.address.logic.commands;

import seedu.address.model.TaskManager;

/**
 * Clears the address book.
 */
public class ClearCommand extends Command {

    public static final String COMMAND_WORD = "clear";
    public static final String MESSAGE_SUCCESS = "Task Manager has been cleared!";


    @Override
    public CommandResult execute() {
        assert model != null;
        model.resetData(new TaskManager());
        return new CommandResult(MESSAGE_SUCCESS);
    }
}

@@ -375,16 +375,105 @@
 = null;%0A
+        model.updateCopy(model.getTaskManager());%0A        model.updateFlag(%22undo copy%22);%0A
         

Add undo clear command