sso icon indicating copy to clipboard operation
sso copied to clipboard

*: add a --version flag

Open mreiferson opened this issue 5 years ago • 1 comments

Now that we're versioning, it's generally useful to be able to introspect what version of a binary you have. For Go specifically, I also find it useful to know what version of Go the binary was built with, e.g.:

$ nsqd --version
nsqd v1.0.0-compat (built w/go1.9.1)

mreiferson avatar Aug 25 '18 00:08 mreiferson

Minor suggestion based on past frustrations automating the deployment of software versioned as suggested above: Consider splitting the application version and any other metadata onto separate lines, for easier consumption by tooling:

sso-auth —version 
1.0.0
Built with go1.11.0

mccutchen avatar Aug 25 '18 01:08 mccutchen