A simple command-line interface (CLI) for managing your todos.
To install todocli
, make sure you have Go installed on your system. Then, run the following command:
go install github.com/hwkd/todo@latest
todo
provides several commands to manage your todos:
To add a new todo, use the add
command:
todo add "My new todo"
You can also set a priority for the todo:
todo add "My new todo" -p 1
To list all your todos, use the list
command:
todo list
By default, this command will only show incomplete todos. To show all todos, including completed ones, use the --all
flag:
todo list --all
To mark a todo as complete, use the complete
command with the todo's ID:
todo complete <id>
To remove a todo, use the remove
command with the todo's ID:
todo remove <id>
To undo a completed todo, use the undo
command with the todo's ID:
todo undo <id>
To update a todo's text or priority, use the update
command with the todo's ID:
todo update <id> -t "My updated todo" -p 2
This project is licensed under the MIT License.