A simple command-line interface (CLI) for managing tasks.
https://roadmap.sh/projects/task-tracker
To install the Task Manager CLI, simply clone this repository and navigate to the project directory:
git clone https://github.com/your-username/task-manager-cli.git
cd task-manager-cli
run npm install
To use the Task Manager CLI, simply run the following command:
node task-cli.js <command> [arguments]
Replace <command>
with one of the available commands (see below).
add
: Add a new taskupdate
: Update an existing taskdelete
: Delete a taskmark-in-progress
: Mark a task as in progressmark-done
: Mark a task as donelist
: List all tasks
Arguments
add
:<description>
(required)update
:<id>
(required),<description>
(required)delete
:<id>
(required)mark-in-progress
:<id>
(required)mark-done
:<id>
(required)list
:[status]
(optional)
- Add, update, delete, and mark tasks as in progress or done
- List all tasks, or filter by status (todo, in progress, done)
- Stores tasks in a JSON file for persistence
Contributions are welcome! If you'd like to contribute to this project, please fork the repository and submit a pull request.
This project is licensed under the MIT License.
node task-cli.js add "Buy groceries"
: Add a new tasknode task-cli.js update 123 "Buy groceries and cook dinner"
: Update an existing tasknode task-cli.js delete 123
: Delete a tasknode task-cli.js mark-in-progress 123
: Mark a task as in progressnode task-cli.js mark-done 123
: Mark a task as donenode task-cli.js list
: List all tasksnode task-cli.js list done
: List all done tasks
Note: This is a basic implementation, and you may want to add additional features or error handling to make the app more robust.