qa

package
v2.25.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LintCommands

func LintCommands(commands *core.Commands) []error

Types

type ArgMustUseDashError

type ArgMustUseDashError struct {
	Command *core.Command
	Argspec *core.ArgSpec
}

func (ArgMustUseDashError) Error

func (err ArgMustUseDashError) Error() string

type ArgSpecInvalidError added in v2.13.0

type ArgSpecInvalidError struct {
	Command *core.Command
	// contains filtered or unexported fields
}

func (ArgSpecInvalidError) Error added in v2.13.0

func (err ArgSpecInvalidError) Error() string

type ArgSpecMissingError added in v2.13.0

type ArgSpecMissingError struct {
	Command *core.Command
	// contains filtered or unexported fields
}

func (ArgSpecMissingError) Error added in v2.13.0

func (err ArgSpecMissingError) Error() string

type CommandInvalidJSONExampleError added in v2.16.1

type CommandInvalidJSONExampleError struct {
	Command *core.Command
}

func (CommandInvalidJSONExampleError) Error added in v2.16.1

type CommandInvalidSeeAlsoError added in v2.16.1

type CommandInvalidSeeAlsoError struct {
	Command        *core.Command
	SeeAlsoCommand string
}

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

type DuplicatedCommandError

type DuplicatedCommandError struct {
	Command *core.Command
}

func (DuplicatedCommandError) Error

func (err DuplicatedCommandError) Error() string

type ExampleCanHaveOnlyOneTypeOfExampleError

type ExampleCanHaveOnlyOneTypeOfExampleError struct {
	Command      *core.Command
	ExampleIndex int
}

func (ExampleCanHaveOnlyOneTypeOfExampleError) Error

type MissingExampleError

type MissingExampleError struct {
	Command *core.Command
}

func (MissingExampleError) Error

func (err MissingExampleError) Error() string

type PositionalArgMustBeRequiredError

type PositionalArgMustBeRequiredError struct {
	Command *core.Command
	Argspec *core.ArgSpec
}

func (PositionalArgMustBeRequiredError) Error

type ShortMustBePresentError

type ShortMustBePresentError struct {
	Command *core.Command
}

func (ShortMustBePresentError) Error

func (err ShortMustBePresentError) Error() string

type ShortMustNotEndWithDotError

type ShortMustNotEndWithDotError struct {
	Command *core.Command
}

func (ShortMustNotEndWithDotError) Error

func (err ShortMustNotEndWithDotError) Error() string

type WellKnownArgAtTheEndError

type WellKnownArgAtTheEndError struct {
	Command *core.Command
	Argspec *core.ArgSpec
}

func (WellKnownArgAtTheEndError) Error

func (err WellKnownArgAtTheEndError) Error() string

type WellKnownArgOrderError

type WellKnownArgOrderError struct {
	Command *core.Command
	Argspec *core.ArgSpec
}

func (WellKnownArgOrderError) Error

func (err WellKnownArgOrderError) Error() string

Jump to

Keyboard shortcuts

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