How k0p1-git/ip works
Project type and purpose
• This is a standalone Java command-line application (an open-source CLI tool) called ChattyBot.
• Purpose: Accept user commands via a text UI, parse them into “task” operations (todo, deadline, event), store tasks persistently in a local file, and display results back to the user.
File structure
• Top-level build: Gradle (build.gradle, gradlew, gradle/).
• Source packages under src/main/java/chatty:
• app: entry point ChattyBot.java
• ui: Ui.java handles I/O with the console
• parser: Parser.java converts raw text to command objects
• storage: Storage.java loads/saves a file on disk
• task: Task, Todo, Deadline, Event, TaskList
• exceptions: custom exception hierarchy for invalid input, I/O, unknown commands
• Tests mirror parser and task functionality under src/test/java/chatty.
README for additional insights
• No database or network calls—persistence is file-based.
Detailed capture of essential elements
• Entry point ChattyBot.java and note its orchestration role.
• Exception channels (e.g., malformed input triggers EmptyDescriptionException → Ui prints error).
• Persistence on startup/shutdown: Storage.load → TaskList, then on every add/delete: Storage.save.