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

[Qin Yifan] iP #285

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 2 additions & 3 deletions .gitignore
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
/*.iml

# Gradle build files
/.gradle/
/build/
src/main/resources/docs/


# MacOS custom attributes files created by Finder
.DS_Store
Expand All @@ -15,3 +13,4 @@ bin/

/text-ui-test/ACTUAL.txt
text-ui-test/EXPECTED-UNIX.TXT
/logs
Binary file not shown.
Binary file added .gradle/6.2/executionHistory/executionHistory.lock
Binary file not shown.
Binary file added .gradle/6.2/fileChanges/last-build.bin
Binary file not shown.
Binary file added .gradle/6.2/fileContent/fileContent.lock
Binary file not shown.
Binary file added .gradle/6.2/fileHashes/fileHashes.bin
Binary file not shown.
Binary file added .gradle/6.2/fileHashes/fileHashes.lock
Binary file not shown.
Binary file added .gradle/6.2/fileHashes/resourceHashesCache.bin
Binary file not shown.
Empty file added .gradle/6.2/gc.properties
Empty file.
Binary file added .gradle/6.2/javaCompile/classAnalysis.bin
Binary file not shown.
Binary file added .gradle/6.2/javaCompile/jarAnalysis.bin
Binary file not shown.
Binary file added .gradle/6.2/javaCompile/javaCompile.lock
Binary file not shown.
Binary file added .gradle/6.2/javaCompile/taskHistory.bin
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added .gradle/6.8.2/fileChanges/last-build.bin
Binary file not shown.
Binary file added .gradle/6.8.2/fileHashes/fileHashes.bin
Binary file not shown.
Binary file added .gradle/6.8.2/fileHashes/fileHashes.lock
Binary file not shown.
Empty file added .gradle/6.8.2/gc.properties
Empty file.
Binary file added .gradle/6.8.2/javaCompile/javaCompile.lock
Binary file not shown.
Binary file added .gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
2 changes: 2 additions & 0 deletions .gradle/buildOutputCleanup/cache.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#Wed Mar 24 20:58:26 SGT 2021
gradle.version=6.2
Binary file added .gradle/buildOutputCleanup/outputFiles.bin
Binary file not shown.
Binary file added .gradle/checksums/checksums.lock
Binary file not shown.
Binary file added .gradle/checksums/md5-checksums.bin
Binary file not shown.
Binary file added .gradle/checksums/sha1-checksums.bin
Binary file not shown.
Empty file.
Empty file added .gradle/vcs-1/gc.properties
Empty file.
Empty file modified CONTRIBUTORS.md
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
60 changes: 60 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
plugins {
id 'java'
id 'application'
id 'com.github.johnrengelman.shadow' version '5.1.0'
}


repositories {
mavenCentral()
}

dependencies {
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'

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'
}

test {
useJUnitPlatform()

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

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

application {
mainClassName = "Launcher"
}

shadowJar {
archiveBaseName = "duke"
archiveClassifier = null
}


run{
standardInput = System.in
}

apply plugin: 'idea'
Binary file added build/classes/java/main/Deadline.class
Binary file not shown.
Binary file added build/classes/java/main/DescriptionException.class
Binary file not shown.
Binary file added build/classes/java/main/DialogBox.class
Binary file not shown.
Binary file added build/classes/java/main/Duke.class
Binary file not shown.
Binary file added build/classes/java/main/DukeException.class
Binary file not shown.
Binary file added build/classes/java/main/Event.class
Binary file not shown.
Binary file added build/classes/java/main/Launcher.class
Binary file not shown.
Binary file added build/classes/java/main/NotFoundException.class
Binary file not shown.
Binary file added build/classes/java/main/Parser.class
Binary file not shown.
Binary file added build/classes/java/main/ParserOutput.class
Binary file not shown.
Binary file added build/classes/java/main/Storage.class
Binary file not shown.
Binary file added build/classes/java/main/Task.class
Binary file not shown.
Binary file added build/classes/java/main/TaskList.class
Binary file not shown.
Binary file added build/classes/java/main/TimeException.class
Binary file not shown.
Binary file added build/classes/java/main/Todo.class
Binary file not shown.
Binary file added build/classes/java/main/UI.class
Binary file not shown.
Binary file added build/libs/duke.jar
Binary file not shown.
Empty file added build/libs/logs
Empty file.
3 changes: 3 additions & 0 deletions build/tmp/shadowJar/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Manifest-Version: 1.0
Main-Class: Launcher

129 changes: 126 additions & 3 deletions docs/README.md
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,137 @@

## Features

### Feature 1
Description of feature.
### `list` - List all the tasks in the current task list

Example of usage:

`list`

Expected outcome:

`_______________________________________________________`

`1.[T][X]shopping`

`2.[T][ ]write some code`

`_______________________________________________________`

### `todo` - Add a task without any date/time attached to it

Example of usage:

`todo cook dinner`

Expected outcome:

`_______________________________________________________`

`Added cook dinner.`

`You now have 3 items in the list.`

`______________________________________________________`

### `deadline` - Add a task with deadline (e.g. 2019-10-15) attached to it

Example of usage:

`deadline sign consent form /by 2019-10-15`

Expected outcome:

`_______________________________________________________`

` Added deadline sign consent form.`

`[D][ ] sign consent form (by: Oct 15 2019)`

`You now have 4 items in the list`

`_______________________________________________________`

### `event` - Add a task with date (e.g. 2019-10-15) attached to it

Example of usage:

`event project meeting /at 2019-10-15`

Expected outcome:

`_______________________________________________________`

`Added event project meeting.`

`[E][ ] project meeting (by: Oct 15 2019)`

`Now you have 5 tasks in the list`

`_______________________________________________________`

### `delete` - Delete a task from the list

Example of usage:

`list`

`_______________________________________________________`

` 1.[T][X] shopping`

` 2.[T][X] write some code`

` 3.[T][X] cook dinner`

` 4.[D][ ] deadline sign consent form (by: Oct 15 2019)`

` 5.[E][X] event project meeting (at: Oct 15 2019)`


` _______________________________________________________`

`delete 3`

Expected outcome:

`_______________________________________________________`

`I have removed item 3`
`_______________________________________________________`

`list`


` 1.[T][X] shopping`

` 2.[T][X] write some code`

` 3.[D][ ] deadline sign consent form (by: Oct 15 2019)`

` 4.[E][X] event project meeting (at: Oct 15 2019)`


` ______________________________________________________`

### `find` - Find a task from the list

Example of usage:

`find code`

Expected outcome:

`_______________________________________________________`

`[T][X] write some code`
`_______________________________________________________`


## Usage

### `Keyword` - Describe action

Describe action and its outcome.
Enter keyward with command line arguments to prompt duke to do something

Example of usage:

Expand Down
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