forked from nus-cs2103-AY1920S1/duke
-
Notifications
You must be signed in to change notification settings - Fork 0
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 #7 from gachia/branch-C-Help
Completed C-Help
- Loading branch information
Showing
9 changed files
with
72 additions
and
9 deletions.
There are no files selected for viewing
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
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,15 @@ | ||
Here are the list of commands that you can use: | ||
- todo <task name> | ||
(saves a default To-Do task) | ||
- deadline <task name> /by <date and time in D/MM/YYYY HHmm> | ||
(saves a To-Do task with a deadline) | ||
- event <event name> /at <venue> | ||
(saves an Event task with a location) | ||
- delete <task number> | ||
(deletes a task from your list) | ||
- done <task number> | ||
(marks a task as done) | ||
- list | ||
(displays your task list) | ||
- find <task name> | ||
(find tasks with the search term) |
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
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
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,22 @@ | ||
/** | ||
* Represents the Command for helping the user use the Chatbot. | ||
* A sub-class of Command. | ||
*/ | ||
public class HelpCommand extends Command { | ||
|
||
/** | ||
* Overridden execute method from Command to return the help message for the user. | ||
* The help message details can be found in /data folder. | ||
* | ||
* @param storage Storage object for saving purposes | ||
* @param tasks Contains the list of tasks | ||
* @param ui Holds Ui printing methods and user input field | ||
* @param input User input | ||
* @return Help Message from UI | ||
* @throws DukeException If help file is unable to be read in showHelp() | ||
*/ | ||
@Override | ||
public String execute(Storage storage, TaskList tasks, Ui ui, String input) throws DukeException { | ||
return ui.showHelp(); | ||
} | ||
} |
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
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.