package seedu.task.logic.commands;

import seedu.task.model.TaskList;

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

    public static final String COMMAND_WORD = "clear";
    public static final String MESSAGE_SUCCESS = "Address book has been cleared!";


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

@@ -86,20 +86,17 @@
 the 
-address book
+task list
 .%0A *
@@ -251,20 +251,17 @@
  = %22
-Address book
+Task list
  has

Refactor ClearCommand