Install command batches through one path
This commit is contained in:
@@ -26,13 +26,8 @@ func (a *App) bridgeTree() *internalcobra.Command {
|
||||
func (a *App) buildBridgeTree() *internalcobra.Command {
|
||||
root := &internalcobra.Command{Name: a.identity.Name}
|
||||
names := make([]string, 0, len(a.commands))
|
||||
for name, node := range a.commands {
|
||||
if node.command.record != nil && node.command.record.absent {
|
||||
continue
|
||||
}
|
||||
if !node.reserved || node.command.record.payload != nil {
|
||||
names = append(names, name)
|
||||
}
|
||||
for name := range a.commands {
|
||||
names = append(names, name)
|
||||
}
|
||||
sort.Strings(names)
|
||||
for _, name := range names {
|
||||
|
||||
Reference in New Issue
Block a user