Do not generate docs for aliases (#7497)

This commit is contained in:
Sam Coe 2023-05-28 09:27:31 +09:00 committed by GitHub
parent 8741b648a6
commit 1c3c402377
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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{},
}, "", "")

View file

@ -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
}