tools

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 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 Copy added in v0.1.97

func Copy(src, dst string)

func CreateEnvFile added in v0.2.0

func CreateEnvFile()

func GenerateCConfig added in v0.1.9

func GenerateCConfig(token string)

func InitInDockerCompose added in v0.2.0

func InitInDockerCompose(db string)

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()

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