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

[randallnhr] iP #389

Open
wants to merge 41 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
556af3f
Add Gradle support
May 24, 2020
d931af6
Level-1
randallnhr Jan 16, 2023
34904a0
Level-1
randallnhr Jan 16, 2023
4e12dad
Level-2
randallnhr Jan 16, 2023
510ffff
Level-3
randallnhr Jan 18, 2023
927000e
Level-4
randallnhr Jan 19, 2023
7315848
A-TextUiTesting
randallnhr Jan 20, 2023
149e1d0
Level-5
randallnhr Jan 20, 2023
357e5f7
Level-6
randallnhr Jan 20, 2023
c2c6903
Level-7
randallnhr Feb 3, 2023
231ec2e
Level-8
randallnhr Feb 4, 2023
4614698
updated input and expected txt files
randallnhr Feb 4, 2023
dbb7cbf
Merge branch 'branch-Level-8'
randallnhr Feb 4, 2023
df38bca
Merge Level-8 to master
randallnhr Feb 4, 2023
5c0e7b1
A-MoreOOP
randallnhr Feb 4, 2023
674f297
A-Packages
randallnhr Feb 5, 2023
c894cbf
Merge remote-tracking branch 'origin/add-gradle-support'
randallnhr Feb 5, 2023
2e673f7
A-Gradle
randallnhr Feb 5, 2023
359765a
A-JUnit
randallnhr Feb 5, 2023
224fa30
Add increment A-JavaDoc
randallnhr Feb 5, 2023
24d5209
Remove redundant codes and correct layout of code
randallnhr Feb 5, 2023
74266a2
Add increment Level-9
randallnhr Feb 5, 2023
56f1dc5
Merge branch 'branch-A-CodingStandard'
randallnhr Feb 5, 2023
25c6740
Merge branch 'branch-Level-9'
randallnhr Feb 5, 2023
1318085
Add GUI
randallnhr Feb 11, 2023
31a8483
Add GUI
randallnhr Feb 12, 2023
c0d137a
Merge branch 'branch-Level-10'
randallnhr Feb 12, 2023
caacaec
Add assertions
randallnhr Feb 12, 2023
0af8473
Merge pull request #2 from randallnhr/branch-A-Assertions
randallnhr Feb 12, 2023
47ec878
Improve CodeQuality
randallnhr Feb 12, 2023
8794559
Fix error in Parser
randallnhr Feb 12, 2023
c21cf25
Merge pull request #3 from randallnhr/branch-A-CodeQuality
randallnhr Feb 12, 2023
8539e7e
Add reschedule functionality
randallnhr Feb 14, 2023
d962643
Merge branch 'branch-BCD-Extension'
randallnhr Feb 14, 2023
47632b4
Improve GUI
randallnhr Feb 16, 2023
0f35873
Add personality
randallnhr Feb 16, 2023
1c91d33
Add personality
randallnhr Feb 16, 2023
919e432
Edit delete and error message
randallnhr Feb 16, 2023
9a5d484
Add Ui.png
randallnhr Feb 16, 2023
a70e173
Edit README.md
randallnhr Feb 17, 2023
0c185b1
Edit README.md
randallnhr Feb 17, 2023
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ bin/

/text-ui-test/ACTUAL.TXT
text-ui-test/EXPECTED-UNIX.TXT

*.class
58 changes: 58 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
plugins {
id 'java'
id 'application'
id 'com.github.johnrengelman.shadow' version '5.1.0'
id 'org.openjfx.javafxplugin' version '0.0.13'
}

repositories {
mavenCentral()
}

dependencies {
String javaFxVersion = '11'

implementation group: 'org.openjfx', name: 'javafx-base', version: javaFxVersion, classifier: 'win'
implementation group: 'org.openjfx', name: 'javafx-base', version: javaFxVersion, classifier: 'mac'
implementation group: 'org.openjfx', name: 'javafx-base', version: javaFxVersion, classifier: 'linux'
implementation group: 'org.openjfx', name: 'javafx-controls', version: javaFxVersion, classifier: 'win'
implementation group: 'org.openjfx', name: 'javafx-controls', version: javaFxVersion, classifier: 'mac'
implementation group: 'org.openjfx', name: 'javafx-controls', version: javaFxVersion, classifier: 'linux'
implementation group: 'org.openjfx', name: 'javafx-fxml', version: javaFxVersion, classifier: 'win'
implementation group: 'org.openjfx', name: 'javafx-fxml', version: javaFxVersion, classifier: 'mac'
implementation group: 'org.openjfx', name: 'javafx-fxml', version: javaFxVersion, classifier: 'linux'
implementation group: 'org.openjfx', name: 'javafx-graphics', version: javaFxVersion, classifier: 'win'
implementation group: 'org.openjfx', name: 'javafx-graphics', version: javaFxVersion, classifier: 'mac'
implementation group: 'org.openjfx', name: 'javafx-graphics', version: javaFxVersion, classifier: 'linux'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.5.0'
testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.5.0'

}

test {
useJUnitPlatform()

testLogging {
events "passed", "skipped", "failed"

showExceptions true
exceptionFormat "full"
showCauses true
showStackTraces true
showStandardStreams = false
}
}

application {
mainClassName = "duke.Launcher"
}

shadowJar {
archiveBaseName = "t4skiezxc"
archiveClassifier = null
}

run{
standardInput = System.in
enableAssertions = true
}
139 changes: 127 additions & 12 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,144 @@
# User Guide
t4skiezxc is a nostalgic chatbot that helps you manage your tasks.

## Features
1. [Quick Start](#quick-start)
2. [Features](#features)
3. [Usage](#usage)

### Feature-ABC
## Quick Start
1. Ensure that you have Java 11 or above installed
2. Download the program from [here](https://github.com/randallnhr/ip/releases)
3. Move the file into a new folder
4. Open your command terminal in the folder and run the command `java -jar t4skiezxc.jar`

Description of the feature.
## Features
> **:information_source: Note on command format**
> - All commands should be in lower-case
>- Words in `<>` are the parameters to be supplied by the user<br>
e.g. in `todo <name>`, name is a parameter which can be used as `todo Homework`
>- All dates provided should be in the form of `yyyy-mm-dd`<br>
e.g. `deadline Assignment /by 2023-05-25`

### Feature-XYZ

Description of the feature.
| Command | Format | Example |
|:--------------------------------------------------------:|:-------------------------------------------------------------------|---------------------------------------|
| [**help**](#help---view-help) | `help` ||
| [**list**](#list---list-of-tasks) | `list` ||
| [**todo**](#todo---add-todo-task) | `todo <name>` | `todo Chores` |
| [**deadline**](#deadline---add-deadline-task) | `deadline <name> /by <yyyy-mm-dd>` | `deadline Homework /by 2023-05-20` |
| [**reschedule**](#reschedule---reschedule-a-task-date) | `reschedule <deadline/event> <index> </by /from /to> <yyyy-mm-dd>` | `reschedule event 2 /from 2023-05-22` |
| [**mark**](#mark---mark-task) | `mark <index>` | `mark 1` |
| [**unmark**](#unmark---unmark-task) | `unmark <index>` | `unmark 1` |
| [**find**](#find---find-similar-tasks) | `find <keyword>` | `find Homework` |

## Usage

### `Keyword` - Describe action
### `help` - View help

Describe the action and its outcome.
Displays a list of commands with its format.

Example of usage:
Format: `help`

`keyword (optional arguments)`
Example:
```
help
```

### `list` - List of tasks

Displays a list of tasks added.

Format: `list`

Example:
```
list
```

### `todo` - Add todo task

Expected outcome:
Adds a todo task that has to be completed with no deadline.

Description of the outcome.
Format: `todo <name>`

Example:
```
expected output
todo Chores
```

### `deadline` - Add deadline task

Adds a deadline task that has to be completed by a given date.<br>

Format: `deadline <name> /by <yyyy-mm-dd>`
- Date has to be in the format yyyy-mm-dd.

Example:
```
deadline Homework /by 2023-05-20
```

### `event` - Add event task

Adds an event task that is happening within two given dates.<br>

Format: `event <name> /from <yyyy-mm-dd> /to <yyyy-mm-dd>`
- Date has to be in the format yyyy-mm-dd.

Example:
```
event Camping /from 2023-05-25 /to 2023-05-28
```

### `reschedule` - Reschedule a task date

Change the date of deadline or event task.<br>

Format: `reschedule <task type> <index> </by /from /to> <yyyy-mm-dd>`
- Date has to be in the format yyyy-mm-dd.
- `<deadline/event>` refers to the type of task you wish to reschedule, **deadline or event only**.
- `<index>` refers to the index of the task as shown in the `list` command. **Must be a positive integer**
- `</by /from /to>` refers to the date you wish to change, `/by` for deadline tasks and `/from` or `/to` for event tasks

Example:
```
reschedule deadline 1 /by 2023-05-20
reschedule event 2 /from 2023-05-22
reschedule event 3 /to 2023-05-24
```

### `mark` - Mark task

Marks a task as completed.

Format: `mark <index>`
- `<Index>` refers to the index of the task as shown in the `list` command. **Must be a positive integer and within number of tasks added**

Example:
```
mark 1
```

### `unmark` - Unmark task

Marks a task as not completed.

Format: `unmark <index>`
- `<Index>` refers to the index of the task as shown in the `list` command. **Must be a positive integer and within number of tasks added**

Example:
```
unmark 1
```

### `find` - Find similar tasks

Displays a list of task similar to the provided keyword.

Format: `find <keyword>`


Example:
```
find Homework
```
Binary file added docs/Ui.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 5 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading