package seedu.address.logic.commands;

import seedu.address.commons.core.EventsCenter;
import seedu.address.commons.events.ui.ExitAppRequestEvent;

/**
 * Terminates the program.
 */
public class ExitCommand extends Command implements RequiresConfirm {

    public static final String COMMAND_WORD = "exit";

    public static final String MESSAGE_EXIT_ACKNOWLEDGEMENT = "Exiting Address Book as requested ...";

    public ExitCommand() {}

    @Override
    public CommandResult execute() {
        EventsCenter.getInstance().post(new ExitAppRequestEvent());
        return new CommandResult(MESSAGE_EXIT_ACKNOWLEDGEMENT);
    }

    @Override
    public CommandResult prompt() {
        ConfirmCommand.AWAITINGCONFIRMATION = this;
        return prompt(COMMAND_WORD);
    }
}

@@ -221,35 +221,8 @@
 and 
-implements RequiresConfirm 
 %7B%0A%0A 
@@ -602,151 +602,6 @@
  %7D%0A%0A
-    @Override%0A    public CommandResult prompt() %7B%0A        ConfirmCommand.AWAITINGCONFIRMATION = this;%0A        return prompt(COMMAND_WORD);%0A    %7D%0A
 %7D%0A

Remove confirmation for exit