Aero
An agent on your desktop.
macOS, Ubuntu
ChatCode
What are we building?
Start a chat, or pick a suggestion below.
Add a --version flag to the CLI.
Working for 17s · 5 tools Waiting for your approval Agent run · 5 tools · 3 steps · 18s
Thinking
Reading file Reading file cmd/root.go 0.1s
Patching file Patching file cmd/root.go 0.3s
Patching file Patching file Makefile 0.1s
Running command Running command go vet ./... 1.2s
Running command Running command go test ./... 2.4s
Done. shelf --version prints the version make build stamps in, and vet and tests pass.
Ask me anything...
Auto K3 1M
Checklist
3/3- Wire up --version Wire up --version
- Stamp it at build time Stamp it at build time
- Vet and test the CLI Vet and test the CLI
cmd/root.go patched
var rootCmd = &cobra.Command{
Use: "shelf",
Short: "Terminal bookmarks",
}
+ // Set by make build with -ldflags.
+ var version = "dev"
+
+ func init() {
+ rootCmd.Version = version
+ }
2 actions need approval 2 actions allowed Actions completed Deny all Allow all
run_command go vet ./...
run_command go test ./...
ok shelf/cmd 0.42s




