Documentation
¶
Index ¶
- func LintCommands(commands *core.Commands) []error
- type ArgMustUseDashError
- type ArgSpecInvalidError
- type ArgSpecMissingError
- type CommandInvalidJSONExampleError
- type CommandInvalidSeeAlsoError
- type DifferentLocalizationForNamespaceError
- type DuplicatedCommandError
- type ExampleCanHaveOnlyOneTypeOfExampleError
- type MissingExampleError
- type MissingSeeAlsoError
- 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 ArgSpecInvalidError ¶ added in v2.13.0
func (*ArgSpecInvalidError) Error ¶ added in v2.13.0
func (err *ArgSpecInvalidError) Error() string
type ArgSpecMissingError ¶ added in v2.13.0
func (*ArgSpecMissingError) Error ¶ added in v2.13.0
func (err *ArgSpecMissingError) Error() string
type CommandInvalidJSONExampleError ¶ added in v2.16.1
func (*CommandInvalidJSONExampleError) Error ¶ added in v2.16.1
func (err *CommandInvalidJSONExampleError) Error() string
type CommandInvalidSeeAlsoError ¶ added in v2.16.1
func (*CommandInvalidSeeAlsoError) Error ¶ added in v2.16.1
func (err *CommandInvalidSeeAlsoError) 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 MissingSeeAlsoError ¶ added in v2.46.0
func (*MissingSeeAlsoError) Error ¶ added in v2.46.0
func (err *MissingSeeAlsoError) 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.