1
0
Fork 0
mirror of https://github.com/spf13/cobra synced 2025-04-04 22:09:11 +00:00
This commit is contained in:
maxlandon 2025-03-21 21:51:21 -04:00 committed by GitHub
commit 690b0387a5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -114,6 +114,11 @@ type Command struct {
// command does not define one.
Version string
// Data are key/value pairs of arbitrary types that can be used by applications or "plugin" libraries
// that wish to store and use data associated with a given command. This data will thus share the same
// lifetime as the command itself.
Data map[string]interface{}
// The *Run functions are executed in the following order:
// * PersistentPreRun()
// * PreRun()