forked from nus-cs2103-AY2021S2/tp
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #143 from yuheem/140-add-help
Add help command
- Loading branch information
Showing
2 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
src/main/java/seedu/budgetbaby/logic/commands/HelpCommand.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package seedu.budgetbaby.logic.commands; | ||
|
||
import seedu.budgetbaby.model.BudgetBabyModel; | ||
|
||
/** | ||
* Format help instructions for every command for display. | ||
*/ | ||
public class HelpCommand extends BudgetBabyCommand { | ||
public static final String COMMAND_WORD = "help"; | ||
|
||
public static final String MESSAGE_USAGE = COMMAND_WORD + ": Shows program usage instructions.\n" | ||
+ "Example: " + COMMAND_WORD; | ||
|
||
public static final String SHOWING_HELP_MESSAGE = "Opened help window."; | ||
|
||
@Override | ||
public CommandResult execute(BudgetBabyModel model) { | ||
return new CommandResult(SHOWING_HELP_MESSAGE, true, false); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters