Previously the version was generated in the main function at runtime.
This patch use the cobra cmd native functionality to include it, which reduces the logic in this program.
The version is not generated in the Makefile and linked into the program at compile time.
Previously the version was generated in the main function at runtime.
This patch use the cobra cmd native functionality to include it, which reduces the logic in this program. The version is not generated in the Makefile and linked into the program at compile time.