8000 feat: add command to show version by ym · Pull Request #604 · jetkvm/kvm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: add command to show version #604

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

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from
Open

Conversation

ym
Copy link
Contributor
@ym ym commented Jun 12, 2025

No description provided.

Copy link
Contributor
@IDisposable IDisposable left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good :)

@SuperQ
Copy link
Contributor
SuperQ commented Jun 12, 2025

The github.com/prometheus/common/version package also includes a nice version output.

https://github.com/prometheus/common/blob/main/version/info.go#L40-L48

That's part of why I put the package in main.go, so it could be used later. :)

A209

@ym
Copy link
Contributor Author
ym commented Jun 19, 2025

The github.com/prometheus/common/version package also includes a nice version output.

https://github.com/prometheus/common/blob/main/version/info.go#L40-L48

That's part of why I put the package in main.go, so it could be used later. :)

Yea, I wanted to use this function, but it doesn't allow overriding versionInfoTmpl. I ended up creating something similar, though.

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.

3 participants
0