-
Notifications
You must be signed in to change notification settings - Fork 76
[antrikshdhand] iP #72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
antrikshdhand
wants to merge
30
commits into
nus-cs2113-AY2324S1:master
Choose a base branch
from
antrikshdhand:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 11 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
0d5d223
Update name and add greeting
68f2743
Add echo function and exit functionality
d49c61b
Add list functionality and improve structure
93a262a
Add task completion feature
0160070
Add Todo, Deadline, and Event functionality
39066db
Modularise code and handle errors
1e8e89c
Handle blank input
7497866
Merge branch 'branch-Level-5'
53fe1c1
Update logo and README
573753f
Divide classes into packages
2f26c3e
Merge branch 'branch-A-Packages'
d4a0275
Add delete functionality
7d83a76
Add functionality to auto-load from save file
94e3ec6
Add automatic local save of newly added tasks
a0d2920
Merge branch-Level-7
e7544e2
Extract storage functionality into HerbertReader class
97df355
Extract UI and parsing functionality
cf187a1
Rename and refactor packages
5abc26c
Add JavaDoc comments
70bf7fe
Add dates to deadlines and events
4e07a60
Add search functionality for tasks
3cafb52
Add "find" to list of commands
b7a2649
Update documentation regarding dates
09561d8
Merge pull request #1 from antrikshdhand/branch-Level-8
antrikshdhand 82dea9e
Merge branch 'master' into branch-Level-9
antrikshdhand 91935c9
Merge pull request #2 from antrikshdhand/branch-Level-9
antrikshdhand a374ae0
Update Javadoc comments
5658758
Update User Guide
927be26
Update README.md
3c37c92
Fix save functionality on deletion and update of tasks
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -15,3 +15,6 @@ bin/ | |
|
|
||
| /text-ui-test/ACTUAL.TXT | ||
| text-ui-test/EXPECTED-UNIX.TXT | ||
|
|
||
| # Ignore .class files | ||
| *.class | ||
This file contains hidden or 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 |
|---|---|---|
| @@ -1,24 +1,50 @@ | ||
| # Duke project template | ||
|
|
||
| This is a project template for a greenfield Java project. It's named after the Java mascot _Duke_. Given below are instructions on how to use it. | ||
|
|
||
| ## Setting up in Intellij | ||
|
|
||
| Prerequisites: JDK 11, update Intellij to the most recent version. | ||
|
|
||
| 1. Open Intellij (if you are not in the welcome screen, click `File` > `Close Project` to close the existing project first) | ||
| 1. Open the project into Intellij as follows: | ||
| 1. Click `Open`. | ||
| 1. Select the project directory, and click `OK`. | ||
| 1. If there are any further prompts, accept the defaults. | ||
| 1. Configure the project to use **JDK 11** (not other versions) as explained in [here](https://www.jetbrains.com/help/idea/sdk.html#set-up-jdk).<br> | ||
| In the same dialog, set the **Project language level** field to the `SDK default` option. | ||
| 3. After that, locate the `src/main/java/Duke.java` file, right-click it, and choose `Run Duke.main()` (if the code editor is showing compile errors, try restarting the IDE). If the setup is correct, you should see something like the below as the output: | ||
| ``` | ||
| Hello from | ||
| ____ _ | ||
| | _ \ _ _| | _____ | ||
| | | | | | | | |/ / _ \ | ||
| | |_| | |_| | < __/ | ||
| |____/ \__,_|_|\_\___| | ||
| ``` | ||
| # Project Herbert | ||
|
|
||
| ``` | ||
| __ __ _______ ______ _______ _______ ______ _______ | ||
| | | | || || _ | | _ || || _ | | | | ||
| | |_| || ___|| | || | |_| || ___|| | || |_ _| | ||
| | || |___ | |_||_ | || |___ | |_||_ | | | ||
| | || ___|| __ || _ | | ___|| __ | | | | ||
| | _ || |___ | | | || |_| || |___ | | | | | | | ||
| |__| |__||_______||___| |_||_______||_______||___| |_| |___| | ||
| ``` | ||
|
|
||
| Welcome to Herbert, the newest and friendliest AI assistant on the market. | ||
|
|
||
|
|
||
| ## Commands | ||
|
|
||
| ``` | ||
| * list | ||
| List all current tasks. | ||
| Usage: list | ||
|
|
||
| * mark | ||
| Mark a task as completed. | ||
| Usage: mark <task number> | ||
|
|
||
| * unmark | ||
| Mark a task as incomplete. | ||
| Usage: unmark <task number> | ||
|
|
||
| * todo | ||
| Add a new todo to your list of tasks. | ||
| Usage: todo <task description> | ||
|
|
||
| * deadline | ||
| Add a new deadline to your list of tasks. | ||
| Usage: deadline <task description> /by <due date> | ||
|
|
||
| * event | ||
| Add a new event to your list of tasks. | ||
| Usage: event <task description> /from <start> /to <end> | ||
|
|
||
| * help | ||
| Show this help menu. | ||
| Usage: help | ||
|
|
||
| * bye | ||
| Exit the Herbert application. | ||
| Usage: bye | ||
| ``` |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,68 @@ | ||
| package duke; | ||
|
|
||
| public enum Command { | ||
| LIST { | ||
| @Override | ||
| public String toString() { | ||
| return "\tList all current tasks." | ||
| + System.lineSeparator() | ||
| + "\tUsage: list"; | ||
| } | ||
| }, | ||
| MARK { | ||
| @Override | ||
| public String toString() { | ||
| return "\tMark a task as completed." | ||
| + System.lineSeparator() | ||
| + "\tUsage: mark <task number>"; | ||
| } | ||
| }, | ||
| UNMARK { | ||
| @Override | ||
| public String toString() { | ||
| return "\tMark a task as incomplete." | ||
| + System.lineSeparator() | ||
| + "\tUsage: unmark <task number>"; | ||
| } | ||
| }, | ||
| TODO { | ||
| @Override | ||
| public String toString() { | ||
| return "\tAdd a new todo to your list of tasks." | ||
| + System.lineSeparator() | ||
| + "\tUsage: todo <task description>"; | ||
| } | ||
| }, | ||
| DEADLINE { | ||
| @Override | ||
| public String toString() { | ||
| return "\tAdd a new deadline to your list of tasks." | ||
| + System.lineSeparator() | ||
| + "\tUsage: deadline <task description> /by <due date>"; | ||
| } | ||
| }, | ||
| EVENT { | ||
| @Override | ||
| public String toString() { | ||
| return "\tAdd a new event to your list of tasks." | ||
| + System.lineSeparator() | ||
| + "\tUsage: event <task description> /from <start> /to <end>"; | ||
| } | ||
| }, | ||
| HELP { | ||
| @Override | ||
| public String toString() { | ||
| return "\tShow this help menu." | ||
| + System.lineSeparator() | ||
| + "\tUsage: help"; | ||
| } | ||
| }, | ||
| BYE { | ||
| @Override | ||
| public String toString() { | ||
| return "\tExit the Herbert application." | ||
| + System.lineSeparator() | ||
| + "\tUsage: bye"; | ||
| } | ||
| } | ||
| } | ||
This file contains hidden or 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,7 @@ | ||
| package duke; | ||
|
|
||
| public class DukeException extends Exception { | ||
| public DukeException(String errorMessage) { | ||
| super(errorMessage); | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why the choice to use enum?