utils

package
v0.11.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExitOnError

func ExitOnError(message string, err error)

ExitOnError will print your error nicely and exit in case of error

func ExitWithErrorMsg

func ExitWithErrorMsg(message string)

ExitWithErrorMsg will print the message and quit the program with an error code

func ExpectFlag

func ExpectFlag(flag, value string)

ExpectFlag exits with an error if the flag value is empty

func PanicOnError

func PanicOnError(err error)

PanicOnError will print the subctl version and then panic in case of an actual error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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