This is a command-line application for managing a to-do list, suggested by roadmap.sh , check it out from here https://roadmap.sh/projects/task-tracker
- Node.js (version 12 or higher)
- npm (Node Package Manager)
- Clone the repository:
git clone https://github.com/yourusername/todo-cli.git
- Navigate to the project directory:
cd todo-cli - Install the dependencies:
npm install
To add a to-do item, use the addTodo command followed by the title of the to-do item:
node index.js addTodo --title="Your todo title"To read a to-do item, use the readTodo command followed by the id of the to-do item:
node index.js readTodo --id="Your todo id"To update a to-do item, use the updateTodo command followed by the id and the new title of the to-do item :
node index.js updateTodo --id="Your todo id" --title="Your new todo title"To delete a to-do item, use the deleteTodo command followed by the title of the to-do item:
node index.js deleteTodo --title="Your todo title"To mark a to-do item as in progress or done, use the mark-done or mark-in-progress command followed by the id of the to-do item
node index.js mark-done --id="Your todo id"node index.js mark-in-progress --id="Your todo id"To list all tasks , use the listTodo command:
node index.js listTodoTo list all tasks that are done , use the listTodosDone command:
node index.js listTodosDoneTo list all tasks that are in progress , use the listTodosInProgress command:
node index.js listTodosInProgressTo list all tasks that are not done , use the listTodosNotDone command:
node index.js listTodosNotDone