Closed centrd closed 3 years ago
I'd like to implement it so that --version returns the output of git describe --tags
.
Output would look something like this when you are on the dev branch:
v0.5.0-4-gf064272
Where gf064272
is the id of the latest commit that you are on and 4
is presumably the number of commits ahead of main.
If you're on main, it would look like this:
v0.5.0
Thoughts?
add --version switch or have -h display the version when called