Skip to content

Commit

Permalink
fix(version): Don't create kubernetes client for version
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <bob@vibioh.fr>
  • Loading branch information
ViBiOh committed Jan 17, 2024
1 parent 32ad008 commit 3c6e733
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ var rootCmd = &cobra.Command{
Use: "kmux",
Short: "Multiplexing kubectl common tasks across clusters",
PersistentPreRunE: func(cmd *cobra.Command, args []string) (err error) {
if cmd.Name() == "version" {
return
}

if parent := cmd.Parent(); parent != nil && parent.Name() == "completion" {
return
}
Expand Down

0 comments on commit 3c6e733

Please sign in to comment.