util

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// RootCommandName is the name of the root command
	RootCommandName = "odo"
	// SkipConnectionCheckFlagName is the name of the global flag used to skip connection check in the client
	SkipConnectionCheckFlagName = "skip-connection-check"
	// ProjectFlagName is the name of the flag allowing a user to specify which project to operate on
	ProjectFlagName = "project"
	// ApplicationFlagName is the name of the flag allowing a user to specify which application to operate on
	ApplicationFlagName = "app"
	// ComponentFlagName is the name of the flag allowing a user to specify which component to operate on
	ComponentFlagName = "component"
)

Variables

This section is empty.

Functions

func CheckError

func CheckError(err error, context string, a ...interface{})

CheckError prints the cause of the given error and exits the code with an exit code of 1. If the context is provided, then that is printed, if not, then the cause is detected using errors.Cause(err)

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