cmd

package
v0.0.0-...-82045e5 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckError

func CheckError(err error)

CheckError

func Execute

func Execute(args ...string) error

Execute

func ExecuteContext

func ExecuteContext(pctx context.Context, args ...string) error

ExecuteContext

Types

type Error

type Error struct {
	Cmd   *cobra.Command
	Cause error
}

func (Error) Error

func (e Error) Error() string

func (Error) Unwrap

func (e Error) Unwrap() error

type UnableToInitializeLoggerError

type UnableToInitializeLoggerError struct {
	Cause error
}

UnableToInitializeLoggerError

func (UnableToInitializeLoggerError) Error

func (UnableToInitializeLoggerError) Unwrap

type UnableToLoadConfigFileError

type UnableToLoadConfigFileError struct {
	Cause error
}

UnableToLoadConfigFileError signifies any issue that may come up when trying to load a config file.

func (UnableToLoadConfigFileError) Error

func (UnableToLoadConfigFileError) Unwrap

type UnknownLogLevelError

type UnknownLogLevelError struct {
	Level string
}

UnknownLogLevelError

func (UnknownLogLevelError) Error

func (e UnknownLogLevelError) Error() string

Jump to

Keyboard shortcuts

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