Documentation ¶
Index ¶
Constants ¶
View Source
const (
GraphqlErrorsExitCode = 2
)
Variables ¶
View Source
var ExitCode1 = &ExitCodeError{exitCode: 1}
Functions ¶
This section is empty.
Types ¶
type ExitCodeError ¶
type ExitCodeError struct {
// contains filtered or unexported fields
}
ExitCodeError is an error type that subcommands can return in order to specify the exact exit code.
func ExitCode ¶
func ExitCode(code int, err error) *ExitCodeError
func (*ExitCodeError) Code ¶
func (e *ExitCodeError) Code() int
func (*ExitCodeError) Error ¶
func (e *ExitCodeError) Error() string
func (*ExitCodeError) HasError ¶
func (e *ExitCodeError) HasError() bool
type UsageError ¶
type UsageError struct {
// contains filtered or unexported fields
}
UsageError is an error type that subcommands can return in order to signal that a usage error has occurred.
func Usage ¶
func Usage(msg string) *UsageError
func Usagef ¶
func Usagef(f string, args ...interface{}) *UsageError
Click to show internal directories.
Click to hide internal directories.