Skip to content

Commit

Permalink
fix: removed header from completion script (#4049)
Browse files Browse the repository at this point in the history
* fix: removed header from completion script

* fix: removed printf
  • Loading branch information
exu authored and povilasv committed Jun 16, 2023
1 parent 93c19e4 commit 1307013
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cmd/kubectl-testkube/commands/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,16 @@ var RootCmd = &cobra.Command{
PersistentPreRun: func(cmd *cobra.Command, args []string) {
ui.SetVerbose(verbose)

// don't validate context before set and completion
if cmd.Name() == "context" || cmd.Parent().Name() == "completion" {
return
}

cfg, err := config.Load()
ui.ExitOnError("loading config", err)

common.UiContextHeader(cmd, cfg)

// don't validate context before set
if cmd.Name() == "context" {
return
}

if err = validator.ValidateCloudContext(cfg); err != nil {
common.UiCloudContextValidationError(err)
}
Expand Down

0 comments on commit 1307013

Please sign in to comment.