clis

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbortOn

func AbortOn(errCase string, e error)

abortOn will quit on anticipated errors gracefully without stack trace

func Abs

func Abs(x int) int

Abs returns the absolute value of x.

func Basename

func Basename(s string) string

Basename returns the file name without extension.

func IsExist

func IsExist(fileName string) bool

IsExist checks if the given file exist

func Setup

func Setup(p string, v int)

func Verbose

func Verbose(levelSet int, format string, args ...interface{})

verbose will print info to stderr according to the verbose level setting

func WarnOn

func WarnOn(errCase string, e error)

func Warning

func Warning(m string)

Types

type OptsT

type OptsT struct {
	Verbose int
}

The OptsT type defines all the configurable options from cli.

var (
	Opts OptsT
)

Jump to

Keyboard shortcuts

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