Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more info about version #213

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lucacome
Copy link
Contributor

@lucacome lucacome commented Mar 6, 2025

This pull request includes changes to the cmd/version.go file to improve the version information output and simplify the code. The most important changes include refactoring the buildVersionString function to include additional version details and updating the buildVersionCommand function accordingly.

Improvements to version information output and code simplification:

  • cmd/version.go: Refactored the buildVersionString function to include the commit hash and commit time in the version output. The function now reads build information directly and returns a formatted string with version details.
  • cmd/version.go: Updated the buildVersionCommand function to use the refactored buildVersionString function, removing the need to pass build information as an argument and simplifying the error handling.

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