A simple command-line interface for tracking tasks and managing your to-do list.
This project is based on the Task Tracker project challenge from roadmap.sh.
- Add new tasks
- Update existing tasks
- Delete tasks
- Mark tasks as complete
- List all tasks with filtering options
# Clone the repository
git clone https://github.com/Imran-cse/task-tracker-cli
cd task-tracker-cli
# Install dependencies
npm install# Add a new task
node task-cli.js add "Buy groceries"
# List all tasks
node task-cli.js list
# List tasks by status
node task-cli.js list done
node task-cli.js list todo
node task-cli.js list in-progress
# Update a task
node task-cli.js update 1 "Buy groceries and cook dinner"
# Mark task as in progress or done
node task-cli.js mark-in-progress 1
node task-cli.js mark-done 1
# Delete a task
node task-cli.js delete 1To make the todo command available globally on your system:
# Make the script executable
chmod +x index.js
# Link the package globally
npm linkAfter running these commands, you can use todo instead of node task-cli.js:
# Add a new task
todo add "Buy groceries"
# List all tasks
todo list
# Mark task as done
todo mark-done 1Each task has the following properties:
id: Unique identifierdescription: Task descriptionstatus: todo, in-progress, or donecreatedAt: Creation timestampupdatedAt: Last update timestamp
- Node.js (version 12 or higher)
MIT