diff --git a/version.go b/version.go index 1db770e..1102cc7 100644 --- a/version.go +++ b/version.go @@ -46,7 +46,7 @@ func VersionCommand(id Identification, additions ...versionAddition) *cobra.Comm value, err := versionInfo(info, format, additions...) if err == nil { - fmt.Print(value) + cmd.Print(value) } return err },