Skip to content

Commit

Permalink
Release
Browse files Browse the repository at this point in the history
  • Loading branch information
JinYuze committed Sep 15, 2020
1 parent 80f78c2 commit 50dd6cf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/seedu/duke/Duke.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package seedu.duke;

import javafx.application.Application;

/**
* Main part of logic of Duke.
*/
public class Duke {

/**
* Holds execution of orders.
*/
Expand Down Expand Up @@ -37,4 +38,8 @@ public TaskList getHistoryList() {
public String run(String userInput) {
return this.executor.execute(userInput);
}

public static void main(String[] args) {
Application.launch(Main.class, args);
}
}
1 change: 1 addition & 0 deletions src/main/java/seedu/duke/Executor.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public String execute(String userInput) {
String result;
if (userInput.equals("bye")) {
result = ui.goodBye();
System.exit(0);
} else if (userInput.equals("list")) {
result = ui.listTask(taskList);
} else if (userInput.startsWith("done")) {
Expand Down

0 comments on commit 50dd6cf

Please sign in to comment.