Skip to content

fix(cmd): print the version through cmd.OutOrStdout instead of fmt.Printf - #65

Merged
sbldevnet merged 1 commit into
mainfrom
agent/go-dev/090769bbecf3
Sep 28, 2026
Merged

sbldevnet merged 1 commit into
mainfrom
agent/go-dev/090769bbecf3

Conversation

@sbldevnet

Copy link
Copy Markdown
Owner

Summary

  • version command now writes through cmd.OutOrStdout() instead of fmt.Printf, so output is capturable/redirectable like the rest of the CLI.
  • Added TestVersionOutput, following the existing run-command test pattern: builds a fresh root via Execute(), sets args to ["version"], and asserts against the captured output buffer.

Test plan

  • go build ./...
  • go vet ./...
  • go test -race ./...

@sbldevnet
sbldevnet merged commit afdc85c into main Sep 28, 2026
4 checks passed
@sbldevnet
sbldevnet deleted the agent/go-dev/090769bbecf3 branch September 28, 2026 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant