mirror of
https://github.com/spf13/cobra
synced 2024-11-20 04:37:18 +00:00
Merge 03ef288abc
into 6b5f577ebc
This commit is contained in:
commit
161c5d1040
1 changed files with 5 additions and 0 deletions
|
@ -111,6 +111,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]any
|
||||
|
||||
// The *Run functions are executed in the following order:
|
||||
// * PersistentPreRun()
|
||||
// * PreRun()
|
||||
|
|
Loading…
Reference in a new issue