Skip to content

bafsoooo/todo-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Todo CLI Application

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

Prerequisites

  • Node.js (version 12 or higher)
  • npm (Node Package Manager)

Installation

  1. Clone the repository:
    git clone https://github.com/yourusername/todo-cli.git
  2. Navigate to the project directory:
    cd todo-cli
  3. Install the dependencies:
    npm install

Usage

Adding a To-Do

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"

Reading a To-Do

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"

Updating a To-Do

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"

Deleting a To-Do

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"

Mark a task as in progress or done

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"

List all tasks

To list all tasks , use the listTodo command:

node index.js listTodo

List all tasks that are done

To list all tasks that are done , use the listTodosDone command:

node index.js listTodosDone

List all tasks that are in progress

To list all tasks that are in progress , use the listTodosInProgress command:

node index.js listTodosInProgress

List all tasks that are not done

To list all tasks that are not done , use the listTodosNotDone command:

node index.js listTodosNotDone

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors