cobra
cobra copied to clipboard
remove unneeded error from printOption method
The code below doesn't really need the error
as return type, so I remove it
func printOptions(buf *bytes.Buffer, cmd *cobra.Command, name string) error {
flags := cmd.NonInheritedFlags()
flags.SetOutput(buf)
if flags.HasAvailableFlags() {
parentFlags.PrintDefaults()
buf.WriteString("```\n\n")
}
return nil
}
@jpmcb Hi John, do you mind taking a quick look at this PR? Should be a fairly straightforward fix :) Thanks!
Can you add a description to this PR please? Thanks much!!
@jpmcb Added. Thanks!
This PR is being marked as stale due to a long period of inactivity
we probably still want this - reopening and marking myself as reviewer