Install command batches through one path

This commit is contained in:
2026-10-11 01:22:47 +00:00
parent 74f6bdeade
commit 24e8cd8629
8 changed files with 87 additions and 46 deletions

View File

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