🇧🇷 Read this in Brazilian Portuguese
Task CLI is a command-line application for task management, developed in Node.js using only native modules.
| This project was developed to solve the task of the Task Tracker project by roadmap.sh.
- Add tasks
- Update task descriptions
- Delete tasks
- Mark tasks as in-progress or done
- List tasks with option to filter by status
- Clone this repository
- Navigate to the project directory
- Run
npm link
to create a global symlink for thetask-cli
command
The Task CLI offers the following commands:
task-cli add <description>
: Adds a new tasktask-cli update <id> <new description>
: Updates the description of an existing tasktask-cli delete <id>
: Deletes a tasktask-cli mark-in-progress <id>
: Marks a task as in-progresstask-cli mark-done <id>
: Marks a task as donetask-cli list [filter]
: Lists all tasks or tasks filtered by status
Tasks can have one of the following statuses:
todo
: Pending task (default status when creating a new task)in-progress
: Task in progressdone
: Completed task
index.js
: Application entry point and command routingactions.js
: Implementation of task management actionsjsonHandler.js
: Functions for manipulating the JSON storage fileutils.js
: Utility functions, such as ID generation
Tasks are stored in a local JSON file named tasks.json
.
This project is licensed under the MIT License.