tools

package
v0.1.86 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CancelError = errors.New("CancelError")

CancelError signals user-initiated cancellation

View Source
var SilentError = errors.New("SilentError")

SilentError is an error that triggers exit code 1 without any error messaging

Functions

func CheckDir added in v0.1.4

func CheckDir()

func GenerateCConfig added in v0.1.9

func GenerateCConfig(token string)

func IsRunningInContainer added in v0.1.82

func IsRunningInContainer() bool

func IsUserCancellation

func IsUserCancellation(err error) bool

func MutuallyExclusive

func MutuallyExclusive(message string, conditions ...bool) error

func Packages added in v0.1.1

func Packages() string

func PrintError

func PrintError(out io.Writer, err error, cmd *cobra.Command, debug bool)

func RemoveConfig added in v0.1.4

func RemoveConfig()

func SetupTokensInDocker added in v0.1.4

func SetupTokensInDocker()

func ToYaml

func ToYaml(d interface{}) []byte

Types

type FlagError

type FlagError struct {
	Err error
}

FlagError is the kind of error raised in flag processing

func (FlagError) Error

func (fe FlagError) Error() string

func (FlagError) Unwrap

func (fe FlagError) Unwrap() error

Jump to

Keyboard shortcuts

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