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";

    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);
    }

}

@@ -268,16 +268,256 @@
 %22exit%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    pub

Add usage string for exit command