Documentation ¶
Index ¶
- func LintCommands(commands *core.Commands) []error
- type ArgMustUseDashError
- type DifferentLocalizationForNamespaceError
- type DuplicatedCommandError
- type ExampleCanHaveOnlyOneTypeOfExampleError
- type MissingExampleError
- type PositionalArgMustBeRequiredError
- type ShortMustBePresentError
- type ShortMustNotEndWithDotError
- type WellKnownArgAtTheEndError
- type WellKnownArgOrderError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LintCommands ¶
Types ¶
type ArgMustUseDashError ¶
func (ArgMustUseDashError) Error ¶
func (err ArgMustUseDashError) Error() string
type DifferentLocalizationForNamespaceError ¶
type DifferentLocalizationForNamespaceError struct { Command1 *core.Command Command2 *core.Command Checks []bool ArgNames1 []string ArgNames2 []string }
func (DifferentLocalizationForNamespaceError) Error ¶
func (err DifferentLocalizationForNamespaceError) Error() string
type DuplicatedCommandError ¶
func (DuplicatedCommandError) Error ¶
func (err DuplicatedCommandError) Error() string
type ExampleCanHaveOnlyOneTypeOfExampleError ¶
func (ExampleCanHaveOnlyOneTypeOfExampleError) Error ¶
func (err ExampleCanHaveOnlyOneTypeOfExampleError) Error() string
type MissingExampleError ¶
func (MissingExampleError) Error ¶
func (err MissingExampleError) Error() string
type PositionalArgMustBeRequiredError ¶
func (PositionalArgMustBeRequiredError) Error ¶
func (err PositionalArgMustBeRequiredError) Error() string
type ShortMustBePresentError ¶
func (ShortMustBePresentError) Error ¶
func (err ShortMustBePresentError) Error() string
type ShortMustNotEndWithDotError ¶
func (ShortMustNotEndWithDotError) Error ¶
func (err ShortMustNotEndWithDotError) Error() string
type WellKnownArgAtTheEndError ¶
func (WellKnownArgAtTheEndError) Error ¶
func (err WellKnownArgAtTheEndError) Error() string
type WellKnownArgOrderError ¶
func (WellKnownArgOrderError) Error ¶
func (err WellKnownArgOrderError) Error() string
Click to show internal directories.
Click to hide internal directories.