Documentation ¶
Index ¶
- Variables
- func Choose(options []string, optionsFn ...func(*choose.Options)) ([]string, error)
- func ChooseHeader(header string) func(*choose.Options)
- func ChooseLimit(limit int) func(*choose.Options)
- func ChooseTimeout(timeout time.Duration) func(*choose.Options)
- func ChooseTimeoutValues(timeoutValues []string) func(*choose.Options)
- func Confirm(prompt string, optionsFn ...func(*confirm.Options) ([]string, error)) (bool, error)
- func ConfirmDefault(defaultValue bool) func(*confirm.Options)
- func ConfirmTimeout(timeout time.Duration) func(*confirm.Options)
- func Input(prompt string, optionsFn ...func(*input.Options)) (string, error)
- func InputPlaceholder(placehold string) func(*input.Options)
- func InputTimeout(timeout time.Duration) func(*input.Options)
- func KongParse(cli interface{}, options ...kong.Option) *kong.Context
Constants ¶
This section is empty.
Variables ¶
View Source
var KongVars = kong.Vars{
"defaultHeight": "0",
"defaultWidth": "0",
"defaultAlign": "left",
"defaultBorder": "none",
"defaultBorderForeground": "",
"defaultBorderBackground": "",
"defaultBackground": "",
"defaultForeground": "",
"defaultMargin": "0 0",
"defaultPadding": "0 0",
"defaultUnderline": "false",
"defaultBold": "false",
"defaultFaint": "false",
"defaultItalic": "false",
"defaultStrikethrough": "false",
}
Functions ¶
func ChooseHeader ¶
func ChooseLimit ¶
func ChooseTimeoutValues ¶
func ConfirmDefault ¶
func InputPlaceholder ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.