mirror of
https://github.com/spf13/cobra
synced 2025-05-06 05:17:21 +00:00
Merge d708fb7fd6
into 50204810fd
This commit is contained in:
commit
31be0aa2f6
1 changed files with 3 additions and 0 deletions
|
@ -175,6 +175,9 @@ type Command struct {
|
||||||
// helpCommand is command with usage 'help'. If it's not defined by user,
|
// helpCommand is command with usage 'help'. If it's not defined by user,
|
||||||
// cobra uses default help command.
|
// cobra uses default help command.
|
||||||
helpCommand *Command
|
helpCommand *Command
|
||||||
|
|
||||||
|
// CustomData permits you to store arbitrary data for specific needs
|
||||||
|
CustomData interface{}
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetArgs sets arguments for the command. It is set to os.Args[1:] by default, if desired, can be overridden
|
// SetArgs sets arguments for the command. It is set to os.Args[1:] by default, if desired, can be overridden
|
||||||
|
|
Loading…
Add table
Reference in a new issue