Documentation ¶
Index ¶
- Constants
- Variables
- func NewPlauncher() *plauncher
- func NewTerminalReader(r io.Reader) *terminalReader
- func PrintTable(w io.Writer, cols []string, nbRows int, getRow func(int) []string, ...)
- func PrintfColorW(w io.Writer, color string, format string, args ...interface{})
- func QuitToStdErr(msg interface{})
- func QuitWithUserError(err error)
- func ResolvePath(origPath string, parse bool) (finalPath string, err error)
- type Config
- type Execs
- type PasswordReader
- type Plauncher
- type TerminalReadPw
- type TerminalReader
Constants ¶
View Source
const DetachedFlag = "detached"
DetachedFlag ...
View Source
const DetachedShortFlag = "d"
DetachedShortFlag ...
Variables ¶
View Source
var Blue = "\033[34m"
Blue ...
View Source
var Cyan = "\033[36m"
Cyan ...
View Source
var Green = "\033[32m"
Green ...
View Source
var Purple = "\033[35m"
Purple ...
View Source
var Red = "\033[31m"
Red ...
View Source
var Reset = "\033[0m"
Reset resets the color
View Source
var White = "\033[37m"
White ...
View Source
var Yellow = "\033[33m"
Yellow ...
Functions ¶
func NewPlauncher ¶ added in v0.7.0
func NewPlauncher() *plauncher
func NewTerminalReader ¶ added in v0.7.0
func PrintTable ¶
func PrintTable( w io.Writer, cols []string, nbRows int, getRow func(int) []string, caption string, )
PrintTable prints data (string arrays) in a tabular format
func PrintfColorW ¶ added in v0.7.0
PrintfColorW ...
func QuitToStdErr ¶
func QuitToStdErr(msg interface{})
QuitToStdErr prints an error on stderr and closes
Types ¶
type Config ¶ added in v0.7.1
type Config struct { Name string // default config file name CfgFn string // bind with flag config (config file submitted by user, it overrides default) }
Options cmd options
type PasswordReader ¶
PasswordReader ...
var DefaultPasswordReader PasswordReader = stdinPasswordReader{/* contains filtered or unexported fields */}
DefaultPasswordReader ...
type TerminalReadPw ¶ added in v0.7.0
type TerminalReader ¶ added in v0.7.0
Click to show internal directories.
Click to hide internal directories.