Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRootCommand ¶
func NewRootCommand(version string, optionFns ...RootOption) *cobra.Command
Types ¶
type RootOption ¶ added in v0.64.1
type RootOption func(*rootOptions)
func WithPreRunE ¶ added in v0.64.1
func WithPreRunE(hook func(*cobra.Command, []string) error) RootOption
WithPreRunE runs hook after the root command validates its persistent flags.
Click to show internal directories.
Click to hide internal directories.