File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -32,15 +32,19 @@ import (
32
32
33
33
var cf * genericclioptions.ConfigFlags
34
34
35
+ // This variable is populated by goreleaser
36
+ var version string
37
+
35
38
// rootCmd represents the base command when called without any subcommands
36
39
var rootCmd = & cobra.Command {
37
40
Use : "kubectl tree KIND NAME" ,
38
41
SilenceUsage : true , // for when RunE returns an error
39
42
Short : "Show sub-resources of the Kubernetes object" ,
40
43
Example : " kubectl tree deployment my-app\n " +
41
44
" kubectl tree kservice.v1.serving.knative.dev my-app" , // TODO add more examples about disambiguation etc
42
- Args : cobra .MinimumNArgs (2 ),
43
- RunE : run ,
45
+ Args : cobra .MinimumNArgs (2 ),
46
+ RunE : run ,
47
+ Version : version ,
44
48
}
45
49
46
50
func run (_ * cobra.Command , args []string ) error {
You can’t perform that action at this time.
0 commit comments