cli

package
v0.0.0-...-dbfed22 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2014 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrWrongInput = errgo.New("Wrong input")

	Mask = errgo.MaskFunc()
)

Functions

func ExitStderr

func ExitStderr(err error)

Exit process with code 1 and print 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{})

Exit 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{})

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

func NewMaticCmd

func NewMaticCmd(version string) *cobra.Command

func Verbosef

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

Print output 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