Skip to content

πŸ“‹ a simple cli todolist built with cobra in go.

License

Notifications You must be signed in to change notification settings

barbaraeguche/cli-todo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

cli-todo πŸ“‹

the classic todo app; built to deepen my understanding of core go concepts.

tech stack ✨

features πŸ‘Ύ

  • task add "..." β€” add a new task
  • task edit -i=X "..." β€” edit a task by index
  • task toggle -i=X β€” toggle task completion
  • task delete -i=X β€” delete a task by index
  • task list β€” view all tasks

i refers to the index of the task you want to work with.

what i learned πŸ’­

  • working with pointers and value receivers
  • building with cobra
  • function and variable scoping in go

running the project 🏁

  • run go mod init github.com/yourusername/cli-todo to initialize the module
  • run go build -o task to rebuild after changes
  • go run . to run the application

note: task data is saved and updated automatically in a local json file.

About

πŸ“‹ a simple cli todolist built with cobra in go.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages