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

[samriddh2145] iP #645

Open
wants to merge 38 commits into
base: master
Choose a base branch
from
Open
Changes from 2 commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
68c58c1
Add Gradle support
May 24, 2020
03523ec
Bump gradle and lib version
Eclipse-Dominator Aug 5, 2023
81a9c53
build.gradle: Prevent generating a second JAR file
aureliony Jul 16, 2024
962daa9
Level 0 - Rename main class and message.
samriddh2145 Aug 30, 2024
19b1f75
Level 0
samriddh2145 Aug 30, 2024
93e0062
Level 1
samriddh2145 Aug 30, 2024
15bb306
Level 2
samriddh2145 Aug 30, 2024
40808b5
Level 3
samriddh2145 Aug 30, 2024
3ca6677
level4
samriddh2145 Sep 4, 2024
0265f50
Automated_Testing
samriddh2145 Sep 4, 2024
756f9de
Level5
samriddh2145 Sep 6, 2024
cf46cc2
Level6
samriddh2145 Sep 6, 2024
1cecdae
Enums
samriddh2145 Sep 6, 2024
b645e1d
Implemented saving and loading file functionality
samriddh2145 Sep 9, 2024
1460fdd
Merge branch 'branch-level-7'
samriddh2145 Sep 9, 2024
682a2a7
Chatbot now saves date and time as LocalDateTime
samriddh2145 Sep 13, 2024
484c3fc
Merge branch 'branch-Level-8'
samriddh2145 Sep 13, 2024
d150412
Added more OOP properties
samriddh2145 Sep 16, 2024
e030379
Added package
samriddh2145 Sep 16, 2024
2012375
Merge remote-tracking branch 'origin/add-gradle-support'
samriddh2145 Sep 16, 2024
dd58a5c
Add JUnit Tests
samriddh2145 Sep 16, 2024
6d4d819
Add JavaDoc comments
samriddh2145 Sep 17, 2024
37768e9
Apply coding standards
samriddh2145 Sep 19, 2024
5ff2982
Implement Level-9
samriddh2145 Sep 19, 2024
5934709
Resolve conflicts and merge branch-A-CodingStandard
samriddh2145 Sep 19, 2024
3b1822e
Resolve conflicts and merge branch-Level-9
samriddh2145 Sep 19, 2024
5be2639
Add GUI and implement Level-10
samriddh2145 Sep 19, 2024
3b1e02f
Merge branch 'branch-Level-10'
samriddh2145 Sep 19, 2024
e9f77b6
Add assert feature
samriddh2145 Sep 20, 2024
68f3ec0
Improve code quality
samriddh2145 Sep 20, 2024
3463b57
Merge pull request #2 from samriddh2145/branch-A-Assertions
samriddh2145 Sep 20, 2024
a3de517
Merge pull request #3 from samriddh2145/branch-A-CodeQuality
samriddh2145 Sep 20, 2024
8acd894
Add stats command to display task statistics
samriddh2145 Sep 20, 2024
97e452a
Fix the issue of welcome message
samriddh2145 Sep 20, 2024
b758e84
Add User Guide and Product Image
samriddh2145 Sep 21, 2024
85cef01
Update README
samriddh2145 Sep 21, 2024
1256e3c
Add changes for jar release
samriddh2145 Sep 21, 2024
af9b906
Add Launcher class
samriddh2145 Sep 30, 2024
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 data/tasks.txt
Original file line number Diff line number Diff line change
@@ -4,3 +4,5 @@ D | 0 | return book | 2/12/2019 1800
D | 0 | quiz | 3/12/2004 1230
T | 0 | hi
T | 0 | hi
T | 0 | hello
T | 0 | read book
4 changes: 3 additions & 1 deletion src/main/java/bing/command/AddCommand.java
Original file line number Diff line number Diff line change
@@ -7,11 +7,12 @@

import java.io.IOException;


/**
* Represents a command that adds a task to the task list.
*/
public abstract class AddCommand implements Command {
protected Task task;
protected final Task task;


/**
@@ -34,6 +35,7 @@ public AddCommand(Task task) {
public void execute(TaskList tasks, Ui ui, Storage storage) {
tasks.addTask(task);
ui.showTasks(tasks);

try {
storage.save(tasks.getTasks());
} catch (IOException e) {
1 change: 1 addition & 0 deletions src/main/java/bing/command/Command.java
Original file line number Diff line number Diff line change
@@ -18,6 +18,7 @@ public interface Command {
*/
void execute(TaskList tasks, Ui ui, Storage storage);


/**
* Returns whether this command causes the application to exit.
*
2 changes: 1 addition & 1 deletion src/main/java/bing/command/DeadlineCommand.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package bing.command;

import bing.task.Deadline;

import java.time.LocalDateTime;

/**
@@ -18,4 +17,5 @@ public class DeadlineCommand extends AddCommand {
public DeadlineCommand(String info, LocalDateTime deadline) {
super(new Deadline(info, deadline));
}

}
2 changes: 1 addition & 1 deletion src/main/java/bing/command/DeleteCommand.java
Original file line number Diff line number Diff line change
@@ -4,9 +4,9 @@
import bing.task.Task;
import bing.task.TaskList;
import bing.ui.Ui;

import java.io.IOException;


/**
* Represents a command to delete a task from the list.
*/
1 change: 0 additions & 1 deletion src/main/java/bing/command/EventCommand.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package bing.command;

import bing.task.Event;

import java.time.LocalDateTime;

/**
1 change: 0 additions & 1 deletion src/main/java/bing/command/MarkCommand.java
Original file line number Diff line number Diff line change
@@ -5,7 +5,6 @@
import bing.task.TaskList;
import bing.task.TaskStatus;
import bing.ui.Ui;

import java.io.IOException;

/**
2 changes: 1 addition & 1 deletion src/main/java/bing/command/UnmarkCommand.java
Original file line number Diff line number Diff line change
@@ -5,9 +5,9 @@
import bing.task.TaskList;
import bing.task.TaskStatus;
import bing.ui.Ui;

import java.io.IOException;


/**
* Represents a command to unmark a task as undone.
*/
1 change: 0 additions & 1 deletion src/main/java/bing/storage/Storage.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package bing.storage;

import bing.task.*;

import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
2 changes: 0 additions & 2 deletions src/main/java/bing/task/Deadline.java
Original file line number Diff line number Diff line change
@@ -2,15 +2,13 @@

import bing.task.Task;
import bing.task.TaskStatus;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
* Represents a task with a deadline.
*/
public class Deadline extends Task {

private LocalDateTime deadline;

/**
1 change: 0 additions & 1 deletion src/main/java/bing/task/Event.java
Original file line number Diff line number Diff line change
@@ -2,7 +2,6 @@

import bing.task.Task;
import bing.task.TaskStatus;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

1 change: 1 addition & 0 deletions src/main/java/bing/ui/Ui.java
Original file line number Diff line number Diff line change
@@ -3,6 +3,7 @@
import java.util.Scanner;
import bing.task.TaskList;


/**
* Handles interactions with the user.
*/