Cache immutable command bridge metadata

This commit is contained in:
2026-10-09 01:34:24 +00:00
parent 5816dd3eb9
commit 3ad355927c
5 changed files with 125 additions and 4 deletions

7
app.go
View File

@@ -1,11 +1,16 @@
package commandkit
import "fmt"
import (
"fmt"
internalcobra "gitea.maximumdirect.net/eric/CommandKit/internal/cobra"
)
// App owns one command registry and its application identity.
type App struct {
identity Identity
commands map[string]*commandNode
commandTree *internalcobra.Command
configRegistered bool
}