export CLIAPP_DATAFIE=$HOME/todos.json
OR put it in $HOME/.cliApp.yaml
datafile: $HOME/todos.json
go build
./cliApp ...
OR
go run main.go ...
- Help
go run main.go --help
- Add a todo item with default priority 3
go run main.go add "Some todo"
- Add a todo item with a priority 5
go run main.go add "format list" -p5
- List to do items
go run main.go list
go run main.go list --all
go run main.go list --done
- Mark 3rd todo item as done
go run main.go done 3