sanity

package
v1.12.2-lite3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AllCmdChecks = []CmdCheck{
		CheckLongDesc,
		CheckExamples,
		CheckFlags,
	}
	AllGlobalChecks = []GlobalCheck{
		CheckGlobalVarFlags,
	}
)

Functions

func CheckExamples

func CheckExamples(cmd *cobra.Command) []error

func CheckFlags

func CheckFlags(cmd *cobra.Command) []error

func CheckGlobalVarFlags

func CheckGlobalVarFlags() []error

func CheckLongDesc

func CheckLongDesc(cmd *cobra.Command) []error

func RunCmdChecks

func RunCmdChecks(cmd *cobra.Command, cmdChecks []CmdCheck, skipCmd []string) []error

func RunGlobalChecks

func RunGlobalChecks(globalChecks []GlobalCheck) []error

Types

type CmdCheck

type CmdCheck func(cmd *cobra.Command) []error

type GlobalCheck

type GlobalCheck func() []error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL