Run invocation features and render final reports

This commit is contained in:
2026-11-22 20:54:58 +00:00
parent b6cb183a71
commit d039efb11d
9 changed files with 182 additions and 14 deletions

View File

@@ -75,6 +75,7 @@ func (a *App) buildRoutingSnapshot() *routingSnapshot {
snapshot := &routingSnapshot{
metadata: root,
runners: make(map[commandmeta.Key]commandPayload),
builtins: make(map[commandmeta.Key]bool),
aliases: a.aliases,
canonical: buildCanonicalTree(a.commands),
flagAliases: a.flagAliases,
@@ -121,6 +122,7 @@ func bridgeCommand(node *canonicalNode, snapshot *routingSnapshot, next *command
InvocationFlags: snapshot.featureFlags,
}
node.metadata = declaration
snapshot.builtins[declaration.Key] = record.builtin
if record.payload != nil {
snapshot.runners[declaration.Key] = record.payload
declaration.Runnable = record.payload.hasRun()