fix(client/v2): correctly handle enhanced sub commands (#21809)
This commit is contained in:
@@ -58,7 +58,9 @@ func (b *Builder) AddMsgServiceCommands(cmd *cobra.Command, cmdDescriptor *autoc
|
||||
return err
|
||||
}
|
||||
|
||||
cmd.AddCommand(subCmd)
|
||||
if !subCmdDescriptor.EnhanceCustomCommand {
|
||||
cmd.AddCommand(subCmd)
|
||||
}
|
||||
}
|
||||
|
||||
if cmdDescriptor.Service == "" {
|
||||
|
||||
@@ -53,7 +53,9 @@ func (b *Builder) AddQueryServiceCommands(cmd *cobra.Command, cmdDescriptor *aut
|
||||
return err
|
||||
}
|
||||
|
||||
cmd.AddCommand(subCmd)
|
||||
if !subCmdDesc.EnhanceCustomCommand {
|
||||
cmd.AddCommand(subCmd)
|
||||
}
|
||||
}
|
||||
|
||||
// skip empty command descriptors
|
||||
|
||||
Reference in New Issue
Block a user