How pratikmishra009/go-todo-cli works
This is a small command-line todo manager. Its workflow loads todos from a JSON file, executes one selected flag-driven action, prints the list, and saves the result. The todo model provides add, edit, delete, toggle, and table display behavior. The excerpts show the main flow and storage implementation; there is no README or evidence of additional product subsystems.
Main entry points: main.go Application Entry · todo.go Todo Operations · commands.go Flag Commands · storage.go JSON Storage
Components 7
CLI
- Application Entry
main.go - Flag Commands
commands.go
Todo Domain
- Todo Operations
todo.go
Persistence
- JSON Storage
storage.go - Todo JSON File
todos.json
Other components
- CLI User
- Table Package
Connections 12
- CLI User → Application Entry: runs CLI
main.go - Application Entry → JSON Storage: loads todos
main.go - Application Entry → Flag Commands: executes flags
main.go - Application Entry → Todo Operations: passes todos
main.go - Application Entry → JSON Storage: saves todos
main.go - JSON Storage → Todo JSON File: reads JSON
storage.go - JSON Storage → Todo JSON File: writes JSON
storage.go - Flag Commands → Todo Operations: adds or edits
commands.go - Flag Commands → Todo Operations: deletes or toggles
commands.go - Flag Commands → Todo Operations: prints list
commands.go - Application Entry → Todo Operations: prints list
main.go - Todo Operations → Table Package: renders table
todo.go