util

package
v1.0.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CmdUsageTemplate = `` /* 946-byte string literal not displayed */

Functions

func CheckOutputFlag added in v0.0.19

func CheckOutputFlag(outputFlag string) error

CheckOutputFlag validates the -o flag

func GetFullName added in v0.0.18

func GetFullName(parentName, name string) string

GetFullName generates a command's full name based on its parent's full name and its own name

func LogErrorAndExit added in v0.0.18

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

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

func PrintComponentInfo added in v0.0.17

func PrintComponentInfo(client *occlient.Client, currentComponentName string, componentDesc component.Component, applicationName string)

PrintComponentInfo prints Component Information like path, URL & storage

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