Skip to content

Conversation

martialblog
Copy link
Contributor

Hi,

whilst testing carbonapi I was noticing there was no version flag. This PR implements this flag similar to go-carbon.

./carbonapi -version
0.17.0
v0.17.0-23-gfc33-dirty

I think it would also make sense to add more context to the output, meaning what the two lines mean:

./carbonapi -version
Version: 0.17.0
BuildVersion: v0.17.0-23-gfc33-dirty

But, I went for consistency with go-carbon. Alternatively, I could add the suggestion here and also open a PR in the go-carbon repo.

Regards,
Markus

@Civil Civil added this pull request to the merge queue Jun 20, 2025
Merged via the queue into go-graphite:main with commit dbaa571 Jun 20, 2025
6 of 7 checks passed
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