A command-line tool for managing tasks with commands to add, update, delete, mark, and list tasks. This CLI application is designed to streamline task management directly from the terminal.
-
Clone the repository:
git clone https://github.com/yourusername/task-cli.git
-
Navigate to the project directory:
cd task-cli -
Install dependencies (if applicable):
npm install
Run the task-cli commands directly from the terminal. Use the following command structure:
task-cli <command> [options]| Command | Description |
|---|---|
task-cli add "<description>" |
Adds a new task with the specified description |
task-cli update <id> "<description>" |
Updates the task description for the given ID |
task-cli delete <id> |
Deletes the task with the specified ID |
task-cli mark-in-progress <id> |
Marks the task with the specified ID as "in-progress" |
task-cli mark-done <id> |
Marks the task with the specified ID as "done" |
task-cli list |
Lists all tasks |
task-cli list <status> |
Lists tasks by status (done, todo, in-progress) |
task-cli add "Buy groceries"
# Output: Task added successfully (ID: 1)task-cli update 1 "Buy groceries and cook dinner"task-cli delete 1task-cli mark-in-progress 1
task-cli mark-done 1task-cli list # Lists all tasks
task-cli list done # Lists tasks marked as done
task-cli list todo # Lists tasks to do
task-cli list in-progress # Lists tasks in-progress- Ensure each command uses the correct task ID.
- Task descriptions with spaces should be enclosed in quotes.