package seedu.tache.logic.commands;

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

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

    public static final String COMMAND_WORD = "exit";
    //@@author A0150120H
    public static final String MESSAGE_USAGE = COMMAND_WORD + ": Exits Tache\n"
            + "All changes will be saved but undo history will be discarded\n"
            + "Example: " + COMMAND_WORD;
    //@@author
    public static final String MESSAGE_EXIT_ACKNOWLEDGEMENT = "Exiting Tache as requested ...";

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

}

@@ -272,248 +272,8 @@
 t%22;%0A
-    //@@author A0150120H%0A    public static final String MESSAGE_USAGE = COMMAND_WORD + %22: Exits Tache%5Cn%22%0A            + %22All changes will be saved but undo history will be discarded%5Cn%22%0A            + %22Example: %22 + COMMAND_WORD;%0A    //@@author
 %0A   

Revert "Add usage string for exit command"