Skip to content

Latest commit

 

History

History
37 lines (30 loc) · 1.13 KB

README.md

File metadata and controls

37 lines (30 loc) · 1.13 KB

gotodo

A todo task implemented in Golang using Cobra and Viper Library.

go-slide

Requirement

Add a task: Users should be able to add a new task to their to-do list along with a due date. List tasks: Users should be able to view a list of all the tasks in their to-do list, including the task description and due date. Complete a task: Users should be able to mark a task as completed. Remove a task: Users should be able to remove a task from their to-do list. Search tasks: Users should be able to search for tasks by keywords or due date.

Usage

Install will install the cli binary The cli will save the todo task in the storage.json file that will be created when you add the task for the first time.

go install github.com/mehulgohil/gotodo
gotodo --help

Cobra Commands

https://github.com/spf13/cobra-cli/blob/main/README.md https://github.com/spf13/cobra/blob/main/user_guide.md

cobra-cli init
cobra-cli add list
cobra-cli add completed -p searchCmd

Test Commands for local testing

 go run . add -n test -d 15/06/23