cli

package
v0.0.0-...-1f9b3f3 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2016 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrWrongInputError = errgo.New("wrong input")
)

Functions

func ExitStderr

func ExitStderr(err error)

ExitStderr exits the process with code 1 and prints output to Stderr, using the error message of err. If --debug is set to true, a helpful error will be printed.

func ExitStderrf

func ExitStderrf(f string, v ...interface{})

ExitStderrf exits the process with code 1 and print output to Stderr, using all objects of v in format f. If --debug is set to true, helpful errors will be printed if given.

func ExitStdoutf

func ExitStdoutf(f string, v ...interface{})

ExitStdoutf exits the process with code 0 and print output to Stdout, using all objects of v in format f.

func NewYochuCmd

func NewYochuCmd(version string) *cobra.Command

NewYochuCmd returns a Cobra command to run Yochu.

func Stdoutf

func Stdoutf(f string, v ...interface{})

Stdoutf prints output for the user to Stdout, using all objects of v in format f.

func Verbosef

func Verbosef(f string, v ...interface{})

Verbosef prints output that is interesting for the user to Stdout, using all objects of v in format f.

Types

This section is empty.

Jump to

Keyboard shortcuts

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