the classic todo app; built to deepen my understanding of core go concepts.
- cobra for cli structure
- aqua security's table for clean table rendering
task add "..."β add a new tasktask edit -i=X "..."β edit a task by indextask toggle -i=Xβ toggle task completiontask delete -i=Xβ delete a task by indextask listβ view all tasks
i refers to the index of the task you want to work with.
- working with pointers and value receivers
- building with cobra
- function and variable scoping in go
- run
go mod init github.com/yourusername/cli-todoto initialize the module - run
go build -o taskto rebuild after changes go run .to run the application
note: task data is saved and updated automatically in a local json file.