How colenocks/tasktrackercli works
Main Components
a) User Interface Layer:
• CLI Interface (TaskCLI.java)
• Command Parser
b) Business Logic Layer:
• Task Management (Task.java, TasksList.java)
• Action Handler (ActionEnum.java)
• Status Management (StatusEnum.java)
• Helper Utilities (Helper.java)
c) Data Layer:
• File Management (FileManager.java)
• JSON Storage (tasks.json)
• GSON Library Integration (gson-2.10.1.jar)
┌─────────────────────────────────────────┐
• User Interface Layer │
• ┘
• ↓ ↑
┌─────────────────────────────────────────┐
• Business Logic Layer │
• ┘
• ↓ ↑
┌─────────────────────────────────────────┐
• Data Layer │
• ┘
Detailed Component Breakdown
User Interface Layer:
┌─────────────────┐
• TaskCLI │←── User Input (CLI Commands)
• Command │
• Processing │
• Input │
• Validation │
• ┘
Business Logic Layer:
┌─────────────────┐ ┌─────────────────┐
• ActionEnum │ │ StatusEnum │
• List │ │ - Todo │
• Add │ │ - In Progress │
• Update │ │ - Done │
• Delete │ └─────────────────┘
• ┘
• ↓
┌─────────────────┐ ┌─────────────────┐
• TasksList │←───│ Task │
• Task │ │ - ID │
• Management │ │ - Description │
• ┘ │ - Status │
• Timestamps │
• ┘
Data Layer:
┌─────────────────┐ ┌─────────────────┐
• FileManager │←───│ tasks.json │
• Read/Write │ │ (JSON Storage) │
• GSON Parser │ │ │
• ┘ └─────────────────┘
Important Elements to Highlight
• Command Flow:
• How user input flows from CLI through the action handling system
• Validation steps
• How data is persisted back to storage
• Data Flow:
• Demonstrate how tasks are created, updated, and stored
• Relationship between Task objects and JSON storage
Technical Details to Note
• The system uses a file-based JSON storage system
• All operations are synchronous
• The application follows a simple three-tier architecture
• GSON is used for JSON serialization/deserialization