package seedu.address.logic.commands;

import seedu.address.model.TaskList;

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

    public static final String COMMAND_WORD = "clear";
    public static final String MESSAGE_SUCCESS = "Your to-do list has been cleared!";

    public ClearCommand() {}


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

package seedu.address.logic.commands;

import seedu.address.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!";

    public ClearCommand() {}


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

--- 
+++ 
@@ -8,7 +8,7 @@
 public class ClearCommand extends Command {
 
     public static final String COMMAND_WORD = "clear";
-    public static final String MESSAGE_SUCCESS = "Address book has been cleared!";
+    public static final String MESSAGE_SUCCESS = "Your to-do list has been cleared!";
 
     public ClearCommand() {}
 
Modify Clear Command success message
