Documentation ¶
Index ¶
- func AskOne(p survey.Prompt, response interface{}, v survey.Validator, ...) error
- func ChooseBool(message string, target *bool) error
- func ChooseFromList(message string, choice *string, options []string) error
- func Contains(a []string, s string) bool
- func EnsureCsv(message string, source string, target *[]string, staticMode bool) error
- func EnsureKVCsv(message string, source string, target *map[string]string, staticMode bool) error
- func GetBoolInput(msg string, value *bool) error
- func GetBoolInputDefault(msg string, value *bool, defaultValue bool) error
- func GetLogger() io.Writer
- func GetLogsPath() string
- func GetResource(uri string) (io.ReadCloser, error)
- func GetStringInput(msg string, value *string) error
- func GetStringInputDefault(msg string, value *string, defaultValue string) error
- func GetStringSliceInput(msg string, value *[]string) error
- func GetUint32Input(msg string, value *uint32) error
- func GetUint32InputDefault(msg string, value *uint32, defaultValue uint32) error
- func GetYesInput(msg string) (bool, error)
- func Initialize() error
- func SelectJoinedData(message string, target *string, list []JoinerData) error
- func UseStdio(io terminal.Stdio)
- type JoinerData
- type JoinerDataSlice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChooseBool ¶
func EnsureKVCsv ¶
Expected format of source: k1,v1,k2,v2
func GetBoolInput ¶
func GetBoolInputDefault ¶
func GetLogsPath ¶ added in v0.13.3
func GetLogsPath() string
func GetResource ¶
func GetResource(uri string) (io.ReadCloser, error)
Get the resource identified by the given URI. The URI can either be an http(s) address or a relative/absolute file path.
func GetStringInput ¶
func GetStringInputDefault ¶
func GetStringSliceInput ¶
func GetUint32Input ¶
func GetUint32InputDefault ¶
func GetYesInput ¶
func Initialize ¶ added in v0.13.3
func Initialize() error
func SelectJoinedData ¶
func SelectJoinedData(message string, target *string, list []JoinerData) error
Types ¶
type JoinerData ¶
type JoinerDataSlice ¶
type JoinerDataSlice []JoinerData
Click to show internal directories.
Click to hide internal directories.