We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b5bac44 + 259df25 commit 7e32fdfCopy full SHA for 7e32fdf
cli/cobra.go
@@ -350,13 +350,10 @@ func orchestratorSubCommands(cmd *cobra.Command) []*cobra.Command {
350
func allManagementSubCommands(cmd *cobra.Command) []*cobra.Command {
351
cmds := []*cobra.Command{}
352
for _, sub := range cmd.Commands() {
353
- if isPlugin(sub) {
354
- if invalidPluginReason(sub) == "" {
355
- cmds = append(cmds, sub)
356
- }
+ if invalidPluginReason(sub) != "" {
357
continue
358
}
359
- if sub.IsAvailableCommand() && sub.HasSubCommands() {
+ if sub.IsAvailableCommand() && (isPlugin(sub) || sub.HasSubCommands()) {
360
cmds = append(cmds, sub)
361
362
0 commit comments