Skip to content

UtkarshM-hub/Go_Todo_CLI_Tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go_Todo_CLI_Tool

To Use this Project

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 .

Add Task

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 Screenshot (93)

Delete Task

todo del -i 1

-i is used to specify the index

List All Tasks

todo list

Screenshot (95)

Expand a Task

todo exp -i 2

The -i is used to specify index it shows following output
Screenshot (97)

Mark Task as Complete

todo comp -i 1

-i is used to specify the index of the task you want to mark as complete

To Clear all Tasks

todo clear

About

A command line tool to manage your task

Resources

License

Stars

Watchers

Forks

Contributors

Languages