ariz-task-tracker
v1.0.0
Published
A very simple Task-Tracker for your project it can be used in your terminal by npm install task-tracker
Downloads
2
Readme
Task Tracker
Sample solution for the task-tracker challenge from roadmap.sh.
This is a simple command-line interface (CLI) application for managing tasks.
Features
- Add new tasks with a unique ID and store it in
JSON
format. - List tasks by their status:
to-do
,in-progress
, ordone
. - Update the description of an existing task.
- Delete tasks by their ID.
- Mark tasks as
in-progress
ordone
.
Prerequisites
- Node.js installed on your system.
Installation
Clone the Repository
git clone --depth=1 https://github.com/arizfaiyaz/Task-Tracker.git
# Navigate to the project Directory
cd backend-projects/task-cli
Usage
- Add a Task
node index.js add "Drink a Coffee"
- List all Tasks
node index.js list
- or by list the tasks by status
# To list the tasks that are marked as to-do
node index.js list to-do
# To list the tasks that are marked as in-progess
node index.js list in-progress
# To list the tasks that are marked as done
node index.js list done
- Update a Task
node index.js update 1 "Drink a Coffee and Do Coding"
- Mark Task Status
# Mark as `in-progress` with containing task ID as 1
node index.js mark-in-progress 1
# Mark as `done` with containing task ID as 1
node index.js mark-done 1
- Delete a Task
# Delete the task by containing its ID 1
node index.js delete 1
Sample JSON structure
[
{
"id": 1,
"description": "Drink a Tea",
"completed": false,
"inProgress": false
}
]