Skip to content

Add version reporting to the CLI#12

Merged
berggren merged 1 commit intomainfrom
version-tag
Apr 3, 2026
Merged

Add version reporting to the CLI#12
berggren merged 1 commit intomainfrom
version-tag

Conversation

@berggren
Copy link
Copy Markdown
Contributor

@berggren berggren commented Apr 3, 2026

Summary

Introduced a version variable and integrated it into the root command to enable version reporting in the CLI.

Technical Details:

  • Version Definition: Created internal/cli/version.go to hold a global Version string. The variable defaults to "dev" but is designed to be overwritten during the build process using -ldflags.
  • Cobra Integration: Updated the NewRootCmd configuration in internal/cli/cli.go to include the Version property. This enables the CLI to automatically handle --version and -v flags, providing users with the current build version.

@berggren berggren merged commit 047c049 into main Apr 3, 2026
3 checks passed
@berggren berggren deleted the version-tag branch April 3, 2026 08:44
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