Skip to content

feat: add version flag in the CLI#43

Merged
sanket-deepsource merged 2 commits intomasterfrom
feat/cli-improvements
Feb 19, 2025
Merged

feat: add version flag in the CLI#43
sanket-deepsource merged 2 commits intomasterfrom
feat/cli-improvements

Conversation

@sanket-deepsource
Copy link
Contributor

This PR adds proper version information to the Globstar CLI. The changes include:

  • Adding a version variable in the pkg/cli package that gets populated during build time
  • Updating build flags in both Makefile and goreleaser.yaml to inject the version information
  • Adding additional CLI info (name, usage, description)
  • Using git describe --tags for local builds to show the current version/tag

The version can now be displayed using the --version flag in the CLI.

Related: #35

@vercel
Copy link

vercel bot commented Feb 19, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
globstar ⬜️ Ignored (Inspect) Feb 19, 2025 5:45am

@sanket-deepsource sanket-deepsource merged commit 71632a1 into master Feb 19, 2025
3 checks passed
@sanket-deepsource sanket-deepsource deleted the feat/cli-improvements branch February 19, 2025 05:51
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.

2 participants