Skip to content

Commit

Permalink
Add Help Command instructions
Browse files Browse the repository at this point in the history
The previous iteration contained the functionality for the help
command but did not mention it specifically.

I change the Ui Class to include the help function explicitly.
  • Loading branch information
sp4ce-cowboy committed Oct 5, 2023
1 parent 85dbcf3 commit 3b40e41
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/main/java/duke/Parser.java
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,6 @@ public static String parseText(String cmd, TaskList tl, Storage store)
break;
}


finalOutput = ui.removedAllTaskScreen();
break;

Expand Down
5 changes: 5 additions & 0 deletions src/main/java/duke/Storage.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ public void taskListToFile(TaskList tl)
}


/**
* Returns the File object contained inside the Storage Object.
*
* @return The File Object
*/
public File getFile() {
return this.file;
}
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/duke/Task.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ public class Task {
this.name = name;
}

/*
* Create a duke.Task object with default false
* done status
/**
* Create a Task object with default false
* done status.
*/
Task(String name) {
this(false, name);
Expand Down
8 changes: 6 additions & 2 deletions src/main/java/duke/Ui.java
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
package duke;

/**
* The UI Class deals with the App's User Interface, inclusive of but not limited to
* System.out formatting, line formatting, and other output formatting.
* The UI Class deals with the App's Graphical User Interface, inclusive of but
* not limited to String formatting, line formatting, error string formatting, a
* and other output formatting.
*/
public class Ui {
private static final String TABS_SPACING = "_________________________";
private static final String WHITE_SPACING = " ";

/** Default constructor */
public Ui() {}

Expand Down Expand Up @@ -75,6 +77,8 @@ public String startScreen() {
+ "\n"
+ this.tabPrinter("list")
+ "\n"
+ this.tabPrinter("help")
+ "\n"
+ this.tabPrinter("mark/unmark/delete <INDEX>")
+ "\n"
+ this.linePrinter();
Expand Down

0 comments on commit 3b40e41

Please sign in to comment.