1.2.0 • Published 5 months ago

hadiul-todo-cli v1.2.0

Weekly downloads
-
License
ISC
Repository
-
Last release
5 months ago

hadiul-todo-cli

A simple CLI tool to manage your todos using a filesystem-based approach.

🚀 Installation

Install the CLI globally using npm:

npm install -g hadiul-todo-cli

📌 Usage

1️⃣ Add a new todo

To add a new task, use:

todo add "Buy groceries"

2️⃣ List all todos

To see all your todos:

todo list

3️⃣ Mark a todo as done

To mark a specific todo as done:

todo done <todo_id>

Example:

todo done 1

4️⃣ Delete a todo

To remove a todo from the list:

todo delete <todo_id>

Example:

todo delete 2

5️⃣ Show Help

To see available commands:

todo -h

📂 How It Works

  • All todos are stored in a todos.json file in the current directory.
  • Each todo has an ID, status (pending/done), and description.
  • The CLI reads/writes to this JSON file to keep track of tasks.

🛠️ Example Workflow

todo add "Complete assignment"
todo add "Read a book"
todo list
todo done 1
todo delete 2
todo list

🏗️ Future Features (Coming Soon)

  • Edit existing todos
  • Set due dates and reminders
  • Sync with cloud storage

📝 License

MIT License


Created by Hadiul Islam

1.2.0

5 months ago

1.1.0

5 months ago

1.0.0

5 months ago