YPSI-SAS / centctl

Centctl is a Go CLI which allows to manage multiple Centreon servers.
MIT License
11 stars 4 forks source link

Improve version result #8

Closed juhnny5 closed 1 year ago

juhnny5 commented 3 years ago

To improve the version management, I suggest you not to write the version of the application in the code but to send it through the ldflags by getting the last git tag.

On top of that, I added the possibility to have the revision (hash of the last commit before compiling), so it allows to better follow the errors between 2 builds.

juhnny5 commented 3 years ago

I added the following: