package seedu.tache.logic.commands;

import seedu.tache.model.TaskManager;

/**
 * Clears the task manager.
 */
public class ClearCommand extends Command {

    public static final String COMMAND_WORD = "clear";
    public static final String MESSAGE_SUCCESS = "All tasks has been cleared!";

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

@@ -284,16 +284,233 @@
 eared!%22;
+%0A    //@@author A0150120H%0A    public static final String MESSAGE_USAGE = COMMAND_WORD + %22: deletes all tasks%5Cn%22%0A            + %22WARNING: THIS CANNOT BE UNDONE%5Cn%22%0A            + %22Example: %22 + COMMAND_WORD;%0A    //@@author
 %0A%0A    @O

Add Usage string for clear command