package seedu.address.logic.commands;

import seedu.address.model.AddressBook;

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

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


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

@@ -71,16 +71,155 @@
 essBook;
+%0Aimport seedu.address.model.tag.UniqueTagList.DuplicateTagException;%0Aimport seedu.address.model.task.UniqueTaskList.DuplicateTaskException;
 %0A%0A/**%0A *
@@ -554,16 +554,65 @@
 ook());%0A
+        model.getUndoStack().push(COMMAND_WORD);%0A
         

Update ClearCommand.java