enrich versioning with build deps (#7848)
`version --long` output now shows the list of build dependencies. Redirect version's output to `stdout`.
This commit is contained in:
@@ -17,6 +17,7 @@ func NewVersionCommand() *cobra.Command {
|
||||
Short: "Print the application binary version information",
|
||||
RunE: func(cmd *cobra.Command, _ []string) error {
|
||||
verInfo := NewInfo()
|
||||
cmd.SetOut(cmd.OutOrStdout())
|
||||
|
||||
if long, _ := cmd.Flags().GetBool(flagLong); !long {
|
||||
cmd.Println(verInfo.Version)
|
||||
|
||||
Reference in New Issue
Block a user