Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
c70ffe0
Level-1: add greet, echo, exit
Strider1990 Aug 24, 2021
776438f
Level-2: Add task add and list
Strider1990 Aug 24, 2021
7fe63e1
Level-2: Add print list and task class
Strider1990 Aug 24, 2021
767b99f
Level-3: Add task completion
Strider1990 Aug 24, 2021
8333882
Merge pull request #1 from Strider1990/Level-2
Strider1990 Aug 24, 2021
e25cc25
Merge pull request #2 from Strider1990/Level-3
Strider1990 Aug 31, 2021
2fbee98
Refactor to use interfaces and generics
Strider1990 Sep 7, 2021
ff1f272
Refactor to use concrete task and fix testing
Strider1990 Sep 7, 2021
b922638
Merge complete
Strider1990 Sep 7, 2021
0f8811d
Add task children, refactor parsing and testing
Strider1990 Sep 8, 2021
ea31172
Completion of level 4 tasks
Strider1990 Sep 8, 2021
7ffd805
Completion of level 4 tasks
Strider1990 Sep 8, 2021
f16a3c6
Merge pull request #3 from Strider1990/lvl4
Strider1990 Sep 8, 2021
d515347
Refactor to prep for further levels
Strider1990 Sep 8, 2021
615dc65
Move to Duke package, refined UI
Strider1990 Sep 8, 2021
ece4e1d
Refactor parsing of task, added exception handling for ICFE
Strider1990 Sep 8, 2021
f323cf6
Gradle setup
Strider1990 Sep 8, 2021
fd9512b
Merge branch 'master' into lvl5
Strider1990 Sep 8, 2021
9f42238
Modified package, add TaskTest
Strider1990 Sep 8, 2021
9e55263
Fix indentation
Strider1990 Sep 8, 2021
1a3e1e3
Improved readability
Strider1990 Sep 8, 2021
e53a6a8
Add IOParser interface for DI, increase test coverage
Strider1990 Sep 9, 2021
09e9129
Create CI.yml
Strider1990 Sep 9, 2021
49cc616
refactor to use StringBuilder, fix ui test
Strider1990 Sep 9, 2021
32073d4
Add uncommitted filed
Strider1990 Sep 9, 2021
142ac96
Merge pull request #5 from Strider1990/lvl5
Strider1990 Sep 9, 2021
887171a
Merge branch 'master' into github_ci
Strider1990 Sep 9, 2021
6d09457
Add gradlew and batch for CI
Strider1990 Sep 9, 2021
c9d0aa2
Add gradle folder
Strider1990 Sep 9, 2021
dd0b750
Merge pull request #4 from Strider1990/github_ci
Strider1990 Sep 9, 2021
2d2c0d0
Break tests to two
Strider1990 Sep 9, 2021
398c212
Merge pull request #6 from Strider1990/CI-separation
Strider1990 Sep 9, 2021
c69cc7b
Fix gradle CLI run
Strider1990 Sep 10, 2021
17c1af7
Abstract TaskList to singleton
Strider1990 Sep 10, 2021
b57893e
Add delete feature
Strider1990 Sep 10, 2021
fd51573
Merge pull request #7 from Strider1990/lvl6
Strider1990 Sep 10, 2021
6fc3397
Fix README.md
Strider1990 Sep 10, 2021
9528472
Merge branch 'master' of https://github.com/Strider1990/duke
Strider1990 Sep 10, 2021
b459038
Abstract commands and code clean up
Strider1990 Sep 10, 2021
1a2deb3
Fix failing test
Strider1990 Sep 10, 2021
645de51
Refactor to use Service pattern for Command, move to package com.alex…
Strider1990 Sep 11, 2021
7d0ee2f
Fix shellscript to also copy resources
Strider1990 Sep 11, 2021
f3a4c13
Add view files step to workflow
Strider1990 Sep 11, 2021
48c0ee0
Remove fail-fast
Strider1990 Sep 11, 2021
0b93f47
Add find to shellscript to view copied files
Strider1990 Sep 11, 2021
5b10d94
Remove TaskFactoryTest
Strider1990 Sep 11, 2021
9de0763
Fixed cp command to copy META-INF folder
Strider1990 Sep 11, 2021
d2d08bc
Remove find command
Strider1990 Sep 11, 2021
3370bb5
Remove unneeded step from workflow
Strider1990 Sep 11, 2021
cecca29
Add Storage for Level-7
Strider1990 Oct 23, 2021
8d3f624
Add LocalDate and LocalDateTime handling for Level-8
Strider1990 Oct 23, 2021
e152182
Complete ViewSchedules
Strider1990 Nov 6, 2021
3becf46
Refactor to follow boolean variable naming convention
Strider1990 Nov 6, 2021
3464887
Added find command
Strider1990 Nov 6, 2021
aa81a9b
Add archival
Strider1990 Nov 6, 2021
cad70b6
Add missing input.txt file
Strider1990 Nov 6, 2021
3f19e97
Add JavaDoc
Strider1990 Nov 7, 2021
5e6e13e
Add important assertions
Strider1990 Nov 7, 2021
e477dc6
Add help command and personalized Duke
Strider1990 Nov 7, 2021
6f50f87
Modify gradle build to prepare for release
Strider1990 Nov 7, 2021
83efcf0
Fix done and undo taskg
Strider1990 Nov 7, 2021
39528c2
Improve error handling
Strider1990 Nov 7, 2021
20d89b0
Further improved error handling
Strider1990 Nov 7, 2021
8390c07
Fix archive out of bounds issue
Strider1990 Nov 7, 2021
039b8e6
Code clean up and refactor, no functionality changed
Strider1990 Nov 8, 2021
8d8753a
Remove dependency on prompt from TaskList
Strider1990 Nov 13, 2021
5b09378
Fix HelpCommand
Strider1990 Nov 13, 2021
aaa8210
Fix expected test case
Strider1990 Nov 13, 2021
236bc08
Fix wrong error message for event error handling
Strider1990 Nov 13, 2021
5ff5617
Fix Task state issue when parsing state
Strider1990 Nov 13, 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
30 changes: 30 additions & 0 deletions .github/workflows/Gradle-CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle

name: Java CI with Gradle

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

workflow_dispatch:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
28 changes: 28 additions & 0 deletions .github/workflows/Text-UI-CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle

name: Java CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Grant execute permission to text-ui-test
run: chmod +x text-ui-test/runtest.sh
- name: Test with runtest.sh
working-directory: ./text-ui-test
run: ./runtest.sh
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
state.txt
archive.txt
37 changes: 37 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
plugins {
id 'java'
id 'application'
}

group 'com.alexooi.duke'
version '1.0'

repositories {
mavenCentral()
}
sourceSets {
main {
java {
srcDirs = ['src/main/java']
}
}
}
jar {
manifest {
attributes(
'Main-Class': 'com.alexooi.duke.Duke'
)
}
}
test {
useJUnitPlatform()
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter:5.7.2'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.2'
}
run {
standardInput = System.in
}
mainClassName = 'com.alexooi.duke.Duke'
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-7.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
234 changes: 234 additions & 0 deletions gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading