This project aims to create a simple intuitive todo list for the terminal. It provides simple commands for manipulating one or multiple todos at a time with ease.
To install this tool, one must have Golang installed on their system. After this, this project can be cloned to a desired location, and installed with the following steps:
$ go build -o "<bin_dir>/godo" main.go
The tool can now be used with the godo
command.
Alternatively run the program with the Golang runtime directly:
$ go run main.go --help
Help for any command is provided with
godo --help
orgodo <command> --help
.
The program implements four different commands: add
, ls
, toggle
and rm
, for different todo manipulation:
To list the todos in the todo list, run the following command:
$ godo add "Grocery shopping" "Exercise" "Drink water" "Program in Go" # Add four different todo list entries.
To list the todos in the todo list run the following command:
$ godo ls # List all todos in todo list.
The list command lists the ID of a given todo within
[#<id>]
.
Toggle todos:
$ godo toggle 1 3 2 5 # Toggle the 'done' state of todos with ID 1, 3, 2 and 5.
Remove todos from the todo list:
$ godo rm 1 3 2 5 # Remove todos with ID 1, 3, 2 and 5.