-
Notifications
You must be signed in to change notification settings - Fork 252
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Successfully revamped the Architecture.
Todo: - Revamp Tests to match - Amend Checkstyle Violations - Move TaskList, Wallet, ReceiptTracker, etc classes to Storage instead of Ui Signed-off-by: Mudaafi <[email protected]>
- Loading branch information
Showing
49 changed files
with
1,216 additions
and
813 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
TODO test ####false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,23 @@ | ||
package executor.command; | ||
|
||
import executor.task.TaskList; | ||
import ui.Ui; | ||
import ui.Wallet; | ||
import storage.StorageManager; | ||
|
||
public class CommandBye extends Command { | ||
|
||
// Constructor | ||
/** | ||
* Constructor for CommandBye subCommand Class. | ||
* @param userInput The user input from the CLI | ||
*/ | ||
public CommandBye(String userInput) { | ||
super(); | ||
this.userInput = userInput; | ||
this.description = "Exits the program \n" | ||
+ "FORMAT : bye"; | ||
this.commandType = CommandType.BYE; | ||
} | ||
|
||
@Override | ||
public void execute(TaskList taskList) { | ||
this.exitRequest = true; | ||
Ui.dukeSays("Bye. Hope to see you again soon!"); | ||
} | ||
|
||
@Override | ||
public void execute(Wallet wallet) { | ||
|
||
public void execute(StorageManager storageManager) { | ||
this.infoCapsule.setCodeExit(); | ||
} | ||
} |
Oops, something went wrong.