Skip to content

Commit

Permalink
Do not generate docs for aliases (#7497)
Browse files Browse the repository at this point in the history
  • Loading branch information
samcoe committed May 28, 2023
1 parent 8741b64 commit 1c3c402
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/gen-docs/main.go
Expand Up @@ -49,7 +49,7 @@ func run(args []string) error {
IOStreams: ios,
Browser: &browser{},
Config: func() (config.Config, error) {
return config.NewBlankConfig(), nil
return config.NewFromString(""), nil
},
ExtensionManager: &em{},
}, "", "")
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/root/help.go
Expand Up @@ -104,7 +104,7 @@ func rootHelpFunc(f *cmdutil.Factory, command *cobra.Command, args []string) {
cs := f.IOStreams.ColorScheme()

if help, _ := flags.GetBool("help"); !help && !command.Runnable() && len(flags.Args()) > 0 {
nestedSuggestFunc(f.IOStreams.ErrOut, command, strings.Join(flags.Args(), " "))
nestedSuggestFunc(f.IOStreams.ErrOut, command, flags.Args()[0])
hasFailed = true
return
}
Expand Down

0 comments on commit 1c3c402

Please sign in to comment.