Skip to content

Conversation

@ryanwuer
Copy link

#46

Comment on lines -108 to -120
return fmt.Errorf("Error invoking kubectl as %v %v", kubectlCmd.Args, err)
return fmt.Errorf("Error invoking kubectl as %v %v\n", kubectlCmd.Args, err)
}
//handle the case of 0--J->J--J
outFormat := *outputFormat
kubeout := "yaml"
for _, arg := range args {
if arg == "json" || arg == "ojson" {
outFormat = "json"
}
}
if !cmd.Flag("output").Changed && kubeout == "json" {
outFormat = "json"
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you please explain the purpose of these changes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants