Documentation
¶
Index ¶
- Constants
- func Detached()
- func PrintTable(cols []string, nbRows int, getRow func(int) []string)
- func QuitToStdErr(msg interface{})
- func QuitWithUserError(err error)
- func ReadFromTerminalYN(def string) (selected string, err error)
- func UsageSprintf(usages map[string][]string) string
- type Options
- type PasswordReader
- type RequiredArgs
Constants ¶
View Source
const DetachedFlag = "detached"
View Source
const DetachedShortFlag = "d"
View Source
const LinuxManPath = "/usr/share/man/man1/"
Variables ¶
This section is empty.
Functions ¶
func QuitToStdErr ¶
func QuitToStdErr(msg interface{})
QuitToStdErr prints an error on stderr and closes
func ReadFromTerminalYN ¶
ReadFromTerminalYN read terminal user input from a Yes No dialog. It returns y and n only with an explicit Yy or Nn input. If no input is submitted it returns default value. If the input is different from the expected one empty string is returned.
func UsageSprintf ¶
Types ¶
type Options ¶
type Options struct {
CfgFn string
}
Options cmd options
func (*Options) InitConfig ¶
InitConfig initializes config
type PasswordReader ¶
var DefaultPasswordReader PasswordReader = new(stdinPasswordReader)
Click to show internal directories.
Click to hide internal directories.