Skip to content

Commit 3c6e733

Browse files
committed
fix(version): Don't create kubernetes client for version
Signed-off-by: Vincent Boutour <[email protected]>
1 parent 32ad008 commit 3c6e733

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmd/root.go

+4
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ var rootCmd = &cobra.Command{
3030
Use: "kmux",
3131
Short: "Multiplexing kubectl common tasks across clusters",
3232
PersistentPreRunE: func(cmd *cobra.Command, args []string) (err error) {
33+
if cmd.Name() == "version" {
34+
return
35+
}
36+
3337
if parent := cmd.Parent(); parent != nil && parent.Name() == "completion" {
3438
return
3539
}

0 commit comments

Comments
 (0)