clone this repo and run following command in your terminal which will build the project and create an executable file out of it
go build .
following command is used to Add task
todo add -n <NAME_OF_THE_TASK> -p <PRIORITY_OF_THE_TASK> -d <DESCRIPTION>
here -n
tag is used to specify name of the task and -p
for priority.
The lowest priority a task can have is 0 and the highest is 10. For medium priority your can use 5.
NOTE! The -d
flag is optional
An example of Add command
todo add -n "First task" -p 10 -d "Just an example"
this will store the json data into the db.json file like you can see in the following image
todo del -i 1
-i
is used to specify the index
todo list
todo exp -i 2
The -i
is used to specify index
it shows following output
todo comp -i 1
-i
is used to specify the index of the task you want to mark as complete
todo clear