cmderrors

package
v0.0.0-...-b2e0f1d Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

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

Jump to

Keyboard shortcuts

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