Compare commits

...

2 commits

Author SHA1 Message Date
maxlandon 161c5d1040
Merge 03ef288abc into 6b5f577ebc 2024-04-04 15:28:45 +02:00
maxlandon 03ef288abc
Add a Data map[string]any field to store arbitrary data for a command. 2023-12-04 08:30:39 +01:00

View file

@ -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()