We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93212cc commit a481262Copy full SHA for a481262
commands.go
@@ -37,7 +37,7 @@ var AppVersion = "unknown"
37
// VersionCommand a version *cobra.Command constructor to print version information.
38
// Supply your build tag as version and it will add runtime and compiler details.
39
func VersionCommand(version string) func(log *slog.Logger) *cobra.Command {
40
- if version != "" {
+ if version == "" {
41
AppVersion = "unknown"
42
}
43
0 commit comments