util

package
v0.0.0-...-64f444e Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultErrorExitCode = 1
)

Variables

View Source
var (
	ErrExit = fmt.Errorf("exit")
)

Functions

func AddDryRunFlag

func AddDryRunFlag(cmd *cobra.Command)

AddDryRunFlag adds dry-run flag to a command. Usually used by mutations.

func CheckErr

func CheckErr(err error)

func GetDryRun

func GetDryRun(cmd *cobra.Command) (bool, error)

func GetFlagBool

func GetFlagBool(cmd *cobra.Command, flag string) bool

func GetFlagString

func GetFlagString(cmd *cobra.Command, flag string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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