Skip to content
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

[Owen] iP #107

Open
wants to merge 53 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
1947ffb
Level 0
blank-bank Jan 22, 2021
309366d
Level-1
blank-bank Jan 27, 2021
a2459dd
Level-2:Add,List
blank-bank Jan 27, 2021
504b6b8
Level-2 (Add,List)
blank-bank Jan 27, 2021
498c525
Level-3: Mark as Done
blank-bank Jan 31, 2021
6bba032
Level 4: Todo, Event, Deadline
blank-bank Feb 5, 2021
40a44b2
Adding OOP way to coding style
blank-bank Feb 10, 2021
7235a9d
Level 5: Handle Errors
blank-bank Feb 10, 2021
bbf88a5
Merge branch 'branch-Level-5' into master
blank-bank Feb 10, 2021
d2f8000
Level-6: Delete with A-collections
blank-bank Feb 17, 2021
09e5e5d
Level-7:Save
blank-bank Feb 17, 2021
3254785
Merge branch 'branch-Level-6' into master
blank-bank Feb 17, 2021
f282da8
Level-7: Save
blank-bank Feb 17, 2021
60f153c
"Just another weird error due to list.txt"
blank-bank Feb 19, 2021
0c1a7a2
"Level-7: Correcting an error"
blank-bank Feb 19, 2021
f6b7b86
Resole error when no initial file
blank-bank Feb 19, 2021
24f5b2f
Resolve error when no initial file
blank-bank Feb 19, 2021
29c7acd
Merge commit 'f6b7b86cd11398a2cbce7e7def3d6633aafb2ddf' into master
blank-bank Feb 21, 2021
ae42437
Update for Level-7
blank-bank Feb 23, 2021
6aa68e1
Added more OOP
blank-bank Feb 23, 2021
7a4660d
Updated date format check
blank-bank Feb 23, 2021
0fad1c0
Level 9: Find
blank-bank Feb 23, 2021
5d5b8ad
Added comments to add methods and classes
blank-bank Feb 24, 2021
3f8d55b
Branch Level 9 edited
blank-bank Feb 23, 2021
46d1447
Merge pull request #1 from blank-bank/branch-Level-8
blank-bank Feb 24, 2021
60498d9
Merge branch 'master' into branch-Level-9
blank-bank Feb 24, 2021
fd6f1b6
Merge pull request #2 from blank-bank/branch-Level-9
blank-bank Feb 24, 2021
5c696de
Merge branch 'master' into branch-A-JavaDoc
blank-bank Feb 24, 2021
bcb732d
Merge pull request #3 from blank-bank/branch-A-JavaDoc
blank-bank Feb 24, 2021
dd384a8
Minor error correction
blank-bank Feb 24, 2021
06b6167
Update README.md
blank-bank Feb 24, 2021
7c03665
Update README.md
blank-bank Feb 24, 2021
28fe2ff
Update README.md
blank-bank Feb 24, 2021
ec7ad50
Update README.md
blank-bank Feb 24, 2021
38dee76
Update README.md
blank-bank Feb 24, 2021
34fa9ce
Merge branch 'branch-Level-6' into master
blank-bank Mar 1, 2021
e93d6e3
Improvements in code quality
blank-bank Mar 3, 2021
0d601e4
no message
blank-bank Mar 3, 2021
e9e61bd
no message
blank-bank Mar 3, 2021
4d1efa6
no message
blank-bank Mar 3, 2021
e779f9f
Update README.md
blank-bank Mar 3, 2021
2d1bb5c
Set theme jekyll-theme-hacker
blank-bank Mar 3, 2021
8b5a0c2
Update README.md
blank-bank Mar 3, 2021
fe8ca72
Update README.md
blank-bank Mar 3, 2021
8f20fdd
Update README.md
blank-bank Mar 3, 2021
b8b9f92
Change the tick character to run on windows terminal
blank-bank Mar 3, 2021
4eb211f
Merge branch 'master' of https://github.com/blank-bank/ip into master
blank-bank Mar 3, 2021
88bedcd
Update README.md
blank-bank Mar 3, 2021
e226f8b
Update README.md
blank-bank Mar 3, 2021
0932796
Update README.md
blank-bank Mar 3, 2021
ba0f44f
Merge branch 'branch-Level-9' into master
blank-bank Mar 4, 2021
cf68899
Merge branch 'branch-Level-8' into master
blank-bank Mar 4, 2021
19d3cc3
Merge branch 'master' of https://github.com/blank-bank/ip into master
blank-bank Mar 4, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Duke project template
# duke.main.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.

Expand All @@ -14,7 +14,7 @@ Prerequisites: JDK 11, update IntelliJ to the most recent version.
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).
1. After that, locate the `src/main/java/Duke.java` file, right-click it, and choose `Run Duke.main()`. If the setup is correct, you should see something like the output below.
1. After that, locate the `src/main/java/duke.main.Duke.java` file, right-click it, and choose `Run duke.main.Duke.main()`. If the setup is correct, you should see something like the output below.

```
Hello from
Expand Down
306 changes: 296 additions & 10 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,306 @@
# User Guide
- [Introduction](#2)
- [Setup](#3)
- [Notes](#1)
- [Features](#a)
- [Adding tasks](#a)
- [todo](#a)
- [deadline](#b)
- [event](#c)
- [Listing all tasks](#d)
- [Completing a task](#e)
- [Find](#f)
- [Description](#f)
- [Date](#g)
- [Save and exit](#i)

## Features
***
# <a name="2"></a> Introduction

### Feature 1
Description of feature.
Your very own application to manage your to-do list!

## Usage
# <a name="3"></a> Setup

### `Keyword` - Describe action
&nbsp;&nbsp;&nbsp;&nbsp; 1. Copy the jar file

Describe action and its outcome.
&nbsp;&nbsp;&nbsp;&nbsp; 2. Launch the jar file using the following command in `CMD`

Example of usage:
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; `java -jar [path to your runnable jar file]`

`keyword (optional arguments)`
<br /><br>
&nbsp;&nbsp;&nbsp;&nbsp; In the event that some characters are not properly printed in the terminal, use the following commands:

Expected outcome:
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; `chcp 65001`

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; `java -jar -Dfile.encoding=UTF-8 [path to your runnable jar file]`


***

# <a name="1"></a> Notes

**General Formatting:**

&nbsp;&nbsp;&nbsp;&nbsp; Description - Describes the functionality of the feature

&nbsp;&nbsp;&nbsp;&nbsp; Formatting - Describes the code formatting to use a feature

&nbsp;&nbsp;&nbsp;&nbsp; Examples - Examples of how to use a feature

&nbsp;&nbsp;&nbsp;&nbsp; Example output - Snapshot of how the usage of a feature will appear in the application
<br /> <br>

**Additional notes:**

&nbsp;&nbsp;&nbsp;&nbsp; The square brackets specifies that user input is required

&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; `command [variable input]`

***

# Features
***
## <a name="a"></a> Adding tasks: Todo
**Description:**

&nbsp;&nbsp;&nbsp;&nbsp; Adding a simple task using the `todo` command

**Formatting:**

&nbsp;&nbsp;&nbsp;&nbsp; `todo` [task description]

**Examples:**

&nbsp;&nbsp;&nbsp;&nbsp; Adding the task "read shakespeare"

&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; `todo read shakespeare`

&nbsp;&nbsp;&nbsp;&nbsp; Adding the task "finish java quiz"

&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; `todo finish java quiz`

**Example output:**
```
todo read shakespeare
____________________________________________________________
Got it. I've added this task:
[T][✘] read shakespeare
Now you have 1 tasks in the list.
____________________________________________________________
```

***
## <a name="b"></a> Adding tasks: Deadline

**Description:**

&nbsp;&nbsp;&nbsp;&nbsp; Adding a deadline task using the `deadline` command.

&nbsp;&nbsp;&nbsp;&nbsp; A deadline consist of a **description** and a **date**.

**Formatting:**

&nbsp;&nbsp;&nbsp;&nbsp; `deadline [task description] /by [date in format YYYY-MM-DD]`

**Examples**

&nbsp;&nbsp;&nbsp;&nbsp; Adding the deadline "read shakespeare by 8 Mar 2021"

&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; `deadline read shakespeare /by 2021-03-08`

&nbsp;&nbsp;&nbsp;&nbsp; Adding the deadline "finish java quiz by 16 Nov 2021"

&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; `deadline finish java quiz /by 2021-11-16`

**Example output**
```
deadline read shakespeare /by 2021-03-08
____________________________________________________________
Got it. I've added this task:
[D][✘] read shakespeare (by: Mar-08-2021 )
Now you have 1 tasks in the list.
____________________________________________________________
```
***

## <a name="c"></a> Adding tasks: Event
**Description:**

&nbsp;&nbsp;&nbsp;&nbsp; Adding an event task using the `event` command.

&nbsp;&nbsp;&nbsp;&nbsp; An event consist of a **description** and a **date**.

**Formatting:**

&nbsp;&nbsp;&nbsp;&nbsp; `event [task description] /at [date in format YYYY-MM-DD]`

**Examples**

&nbsp;&nbsp;&nbsp;&nbsp; Adding the event "read shakespeare by 8 Mar 2021"

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; `event shakespeare's play /at 2021-03-08`

&nbsp;&nbsp;&nbsp;&nbsp; Adding the event "java quiz by 16 Nov 2021"

&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; `event java quiz /at 2021-11-16`

**Example output**
```
event shakespeare's play /at 2021-03-08
____________________________________________________________
Got it. I've added this task:
[E][✘] shakespeare's play (by: Mar-08-2021 )
Now you have 1 tasks in the list.
____________________________________________________________
```


## <a name="d"></a> Listing all tasks
**Description:**

&nbsp;&nbsp;&nbsp;&nbsp;List all tasks (todo, deadline, event)

**Formatting:**

&nbsp;&nbsp;&nbsp;&nbsp;`list`

**Example output**
```
list
____________________________________________________________
Here are the tasks in your list:
1.[T][✘] read shakespeare
2.[D][✘] read shakespeare (by: Mar-08-2021 )
3.[E][✘] shakespeare's play (at: Mar-08-2021 )
____________________________________________________________
```
***

## <a name="e"></a> Completing a task
**Description:**

&nbsp;&nbsp;&nbsp;&nbsp;Set the task to be done.

**Formatting:**

&nbsp;&nbsp;&nbsp;&nbsp;`done [index]`

**Examples**

&nbsp;&nbsp;&nbsp;&nbsp;`done 1`

**Example output**
```
Here are the tasks in your list:
1.[T][✘] read shakespeare
2.[D][✘] read shakespeare (by: Mar-08-2021 )
3.[E][✘] shakespeare's play (at: Mar-08-2021 )
____________________________________________________________
done 1
____________________________________________________________
Nice! I've marked this task as done:
[✓] read shakespeare
____________________________________________________________
list
____________________________________________________________
Here are the tasks in your list:
1.[T][✓] read shakespeare
2.[D][✘] read shakespeare (by: Mar-08-2021 )
3.[E][✘] shakespeare's play (at: Mar-08-2021 )
____________________________________________________________
```

## <a name="f"></a> Find tasks: Description
**Description:**

&nbsp;&nbsp;&nbsp;&nbsp;Find specific tasks based on similar descriptions.

**Formatting:**

&nbsp;&nbsp;&nbsp;&nbsp; `find [task description]`

**Examples**

&nbsp;&nbsp;&nbsp;&nbsp; Find any tasks with the phrase "read shakespeare" in description

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; `find read shakespeare`

&nbsp;&nbsp;&nbsp;&nbsp; Find any tasks with the word book description

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`find book`

**Example output**
```
find read shakespeare
____________________________________________________________
Here are the matching tasks in your list:
1.[T][✓] read shakespeare
2.[D][✘] read shakespeare (by: Mar-08-2021 )
____________________________________________________________
```

## <a name="g"></a> Find tasks: Date
**Description:**

&nbsp;&nbsp;&nbsp;&nbsp;Find specific tasks based on date input.

**Formatting:**

&nbsp;&nbsp;&nbsp;&nbsp; Find all events that occur on a specific date

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; `findAt [Date with format YYYY-MM-DD]`

&nbsp;&nbsp;&nbsp;&nbsp; Find all deadlines that occurs before a specific date

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; `findBy [Date with format YYYY-MM-DD]`

**Examples**

&nbsp;&nbsp;&nbsp;&nbsp; Find events happening on 10 March 2021

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; `findAt 2021-03-10`

&nbsp;&nbsp;&nbsp;&nbsp; Find all deadlines that occurs before a 10 March 2021

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; `findBy 2021-03-10`

**Example output**
```
Here are the tasks in your list:
1.[T][✓] read shakespeare
2.[D][✘] read shakespeare (by: Mar-08-2021 )
3.[E][✘] shakespeare's play (at: Mar-08-2021 )
4.[D][✘] watch wandaVision (by: Mar-10-2021 )
5.[E][✘] homework submission (at: Mar-08-2021 )
____________________________________________________________
findAt 2021-03-08
____________________________________________________________
Here are the matching tasks in your list:
1.[E][✘] shakespeare's play (at: Mar-08-2021 )
2.[E][✘] homework submission (at: Mar-08-2021 )
____________________________________________________
findBy 2021-03-10
____________________________________________________________
Here are the matching tasks in your list:
1.[D][✘] read shakespeare (by: Mar-08-2021 )
2.[D][✘] watch wandaVision (by: Mar-10-2021 )
```

## <a name="i"></a> Save and exit
**Description:**

&nbsp;&nbsp;&nbsp;&nbsp;Save all tasks in file and exits

**Formatting:**

&nbsp;&nbsp;&nbsp;&nbsp;`bye`

**Example output**
```
bye
____________________________________________________________
File is overwritten.
Bye. Hope to see you again soon!
____________________________________________________________
```

`outcome`
1 change: 1 addition & 0 deletions docs/_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
theme: jekyll-theme-hacker
6 changes: 6 additions & 0 deletions list.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
D false owennsdck Oct-10-2020
D false ppp Oct-11-2020
D false qqq Oct-12-2020
D false eee Oct-13-2020
E true party Sep-09-2020
T false owen
10 changes: 0 additions & 10 deletions src/main/java/Duke.java

This file was deleted.

3 changes: 3 additions & 0 deletions src/main/java/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Manifest-Version: 1.0
Main-Class: duke.main.Duke

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package duke.exceptions;

/** DeadlineParameterExceptions class to handle deadline parameter exception. */
public class DeadlineParameterExceptions extends Exception{
}
5 changes: 5 additions & 0 deletions src/main/java/duke/exceptions/EventParameterExceptions.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package duke.exceptions;

/** EventParameterExceptions class to handle Event parameter exception. */
public class EventParameterExceptions extends Exception{
}
5 changes: 5 additions & 0 deletions src/main/java/duke/exceptions/InvalidCommandExceptions.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package duke.exceptions;

/** InvalidCommandExceptions class to handle invalid commands exception. */
public class InvalidCommandExceptions extends Exception{
}
5 changes: 5 additions & 0 deletions src/main/java/duke/exceptions/InvalidIndexExceptions.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package duke.exceptions;

/** InvalidIndexExceptions class to handle invalid index exception. */
public class InvalidIndexExceptions extends Exception{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package duke.exceptions;

/** InvalidParameterLengthExceptions class to handle insufficient parameters exception. */
public class InvalidParameterLengthExceptions extends Exception{
}
Loading