Skip to content

feat: add version subcommand and inject CLI version in container builds#106

Merged
rokuosan merged 3 commits intomainfrom
add-version-subcommand
Apr 28, 2026
Merged

feat: add version subcommand and inject CLI version in container builds#106
rokuosan merged 3 commits intomainfrom
add-version-subcommand

Conversation

@rokuosan
Copy link
Copy Markdown
Owner

@rokuosan rokuosan commented Apr 28, 2026

Summary

  • add a version subcommand to print the CLI version
  • inject cmd/cli.Version at build time via -ldflags in the container build
  • update the container image workflow to publish to GHCR only on tag builds

Details

  • default the CLI version to dev and allow overriding it at build time
  • add tests for the new version subcommand and root command wiring
  • pass the version from the container build workflow into the Docker build as a build arg

Testing

  • go test ./...

@rokuosan rokuosan changed the title add version subcommand feat: add version subcommand and inject CLI version in container builds Apr 28, 2026
@rokuosan rokuosan merged commit e35b584 into main Apr 28, 2026
4 checks passed
@rokuosan rokuosan deleted the add-version-subcommand branch April 28, 2026 06:56
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