Cache immutable command bridge metadata
This commit is contained in:
7
app.go
7
app.go
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user