Task CLI is a simple command-line application to manage tasks efficiently. It allows you to add, update, delete, and mark tasks with different statuses.
Clone the repository and compile the Java program:
# Clone the repository
git clone https://github.com/your-repo/task-cli.git
cd task-cli
# Compile the Java program
javac -d out -sourcepath src src/CommandLineEntryPoint.java
# Run the CLI
java -cp out CommandLineEntryPoint
To add a new task, use the following command:
java -cp out CommandLineEntryPoint add "Buy groceries"
Output:
Task added successfully (ID: 1)
To update an existing task:
java -cp out CommandLineEntryPoint update 1 "Buy groceries and cook dinner"
To delete a task:
java -cp out CommandLineEntryPoint delete 1
To mark a task as in progress:
java -cp out CommandLineEntryPoint mark-in-progress 1
To mark a task as done:
java -cp out CommandLineEntryPoint mark-done 1
To list all tasks:
java -cp out CommandLineEntryPoint list
[
{
"id": 1,
"description": "Buy groceries",
"status": "todo",
"createdAt": "Fri Mar 14 23:01:43 PET 2025",
"updatedAt": "Fri Mar 14 23:01:43 PET 2025"
},
{
"id": 2,
"description": "Buy groceries",
"status": "todo",
"createdAt": "Fri Mar 14 23:17:54 PET 2025",
"updatedAt": "Fri Mar 14 23:17:54 PET 2025"
},
{
"id": 3,
"description": "Buy groceries",
"status": "todo",
"createdAt": "Fri Mar 14 23:44:45 PET 2025",
"updatedAt": "Fri Mar 14 23:44:45 PET 2025"
}
]
To filter tasks based on status, use:
java -cp out CommandLineEntryPoint list done
java -cp out CommandLineEntryPoint list todo
java -cp out CommandLineEntryPoint list in-progress
- Add, update, delete tasks
- Mark tasks as "to do", "in progress", or "done"
- List tasks with filtering options
https://roadmap.sh/projects/task-tracker
This project is licensed under the MIT License.