Co-authored-by: John Letey <john@noble.xyz> Co-authored-by: Julien Robert <julien@rbrt.fr>
This commit is contained in:
parent
bcd31a16ab
commit
412f4e719e
@ -36,6 +36,10 @@ Ref: https://keepachangelog.com/en/1.0.0/
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* [#21809](https://github.com/cosmos/cosmos-sdk/pull/21809) Correctly handle enhanced sub commands.
|
||||
|
||||
## [v2.0.0-beta.5] - 2024-09-18
|
||||
|
||||
### Improvements
|
||||
|
||||
@ -49,7 +49,9 @@ func (b *Builder) AddMsgServiceCommands(cmd *cobra.Command, cmdDescriptor *autoc
|
||||
return err
|
||||
}
|
||||
|
||||
cmd.AddCommand(subCmd)
|
||||
if !subCmdDescriptor.EnhanceCustomCommand {
|
||||
cmd.AddCommand(subCmd)
|
||||
}
|
||||
}
|
||||
|
||||
if cmdDescriptor.Service == "" {
|
||||
|
||||
@ -52,7 +52,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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user