Documentation ¶
Index ¶
- Variables
- func CheckExamples(cmd *cobra.Command) []error
- func CheckFlags(cmd *cobra.Command) []error
- func CheckGlobalVarFlags() []error
- func CheckLongDesc(cmd *cobra.Command) []error
- func RunCmdChecks(cmd *cobra.Command, cmdChecks []CmdCheck, skipCmd []string) []error
- func RunGlobalChecks(globalChecks []GlobalCheck) []error
- type CmdCheck
- type GlobalCheck
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AllCmdChecks = []CmdCheck{ CheckLongDesc, CheckExamples, CheckFlags, } AllGlobalChecks = []GlobalCheck{ CheckGlobalVarFlags, } )
Functions ¶
func CheckExamples ¶
func CheckFlags ¶ added in v1.7.1
func CheckGlobalVarFlags ¶ added in v1.7.1
func CheckGlobalVarFlags() []error
func CheckLongDesc ¶
func RunCmdChecks ¶ added in v1.7.1
func RunGlobalChecks ¶ added in v1.7.1
func RunGlobalChecks(globalChecks []GlobalCheck) []error
Types ¶
type GlobalCheck ¶ added in v1.7.1
type GlobalCheck func() []error
Click to show internal directories.
Click to hide internal directories.