Run invocation features and render final reports
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user