A simple command-line task tracker built with Java.
It supports adding, listing, updating, and deleting tasks using a lightweight local file-based system.
- Add tasks from the terminal
- Automatically generates unique incremental IDs
- Persists tasks in
data/data.json - Tracks task IDs in a hidden
.idfile - Includes stubs for
list,update, anddelete
| Command | Description | Example |
|---|---|---|
add |
Adds a new task | java TaskTracker add Finish homework |
list |
Lists all tasks (WIP) | java TaskTracker list |
update |
Updates an existing task (WIP) | java TaskTracker update 1 "New Task Title" |
delete |
Deletes a task by ID (WIP) | java TaskTracker delete 2 |
- The program checks for a
data/folder; if missing, it creates one. - When adding a task:
- It reads the last used ID from
.id. - Increments it and writes the new task to
data.json. - Each task entry is stored in JSON-like format:
{ "id": 3, "task": "Finish homework" }
- It reads the last used ID from
- Commands like
delete,update, andlistare scaffolded for future expansion.
Clone the repo, Use javac to compile, then execute commands directly using java:
- java TaskTracker add "Finish documentation"
You can also test other commands:
- java TaskTracker list
- java TaskTracker delete 2
- java TaskTracker update 3 "Refactor main class"