mirror of
https://github.com/spf13/cobra
synced 2025-04-07 07:19:16 +00:00
Use interface{} instead of any for backward compatibility
This commit is contained in:
parent
03ef288abc
commit
62781eb0a4
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ type Command struct {
|
||||||
// Data are key/value pairs of arbitrary types that can be used by applications or "plugin" libraries
|
// 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
|
// that wish to store and use data associated with a given command. This data will thus share the same
|
||||||
// lifetime as the command itself.
|
// lifetime as the command itself.
|
||||||
Data map[string]any
|
Data map[string]interface{}
|
||||||
|
|
||||||
// The *Run functions are executed in the following order:
|
// The *Run functions are executed in the following order:
|
||||||
// * PersistentPreRun()
|
// * PersistentPreRun()
|
||||||
|
|
Loading…
Reference in a new issue