We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5fd5f72 commit d05f596Copy full SHA for d05f596
cmd/kndp/main.go
@@ -2,6 +2,7 @@ package main
2
3
import (
4
"context"
5
+ "fmt"
6
"os"
7
"os/signal"
8
@@ -33,6 +34,7 @@ type VersionFlag string
33
34
func (v VersionFlag) Decode(ctx *kong.DecodeContext) error { return nil }
35
func (v VersionFlag) IsBool() bool { return true }
36
func (v VersionFlag) BeforeApply(app *kong.Kong, vars kong.Vars) error {
37
+ fmt.Println(vars["version"])
38
app.Exit(0)
39
return nil
40
}
0 commit comments