Documentation ¶
Index ¶
- Constants
- Variables
- func Bold(text string) string
- func Cyan(text string) string
- func Error(text string)
- func Green(text string) string
- func Info(text string)
- func NewError(text string) error
- func Red(text string) string
- func Success(text string)
- func Warning(text string)
- func Yellow(text string) string
- type InputAutocomplete
- type InputBool
- type InputEmail
- type InputInt
- type InputList
- type InputMultiline
- type InputMultiselect
- type InputPassword
- type InputPath
- type InputText
- type InputTextValidator
- type InputURL
- type SurveyBool
- type SurveyEmail
- type SurveyInt
- type SurveyList
- type SurveyMultiline
- type SurveyMultiselect
- type SurveyPassword
- type SurveyText
- type SurveyTextValidator
- type SurveyURL
Constants ¶
View Source
const PasswordType = "password"
Variables ¶
View Source
var ( BoolOpts = map[string]bool{ "yes": true, "no": false, "true": true, "false": false, "Yes": true, "No": false, "True": true, "False": false, "✅ Yes": true, "❌ No": false, } )
View Source
var ErrInvalidNumber = errors.New("invalid number")
Functions ¶
Types ¶
type InputAutocomplete ¶
type InputAutocomplete struct{}
func NewInputAutocomplete ¶
func NewInputAutocomplete() InputAutocomplete
type InputEmail ¶
type InputMultiline ¶
type InputMultiselect ¶
type InputPassword ¶
type InputTextValidator ¶
type SurveyEmail ¶
type SurveyEmail struct{}
func NewSurveyEmail ¶
func NewSurveyEmail() SurveyEmail
type SurveyMultiline ¶
type SurveyMultiline struct{}
func NewSurveyMultiline ¶
func NewSurveyMultiline() SurveyMultiline
func (SurveyMultiline) MultiLineText ¶
func (SurveyMultiline) MultiLineText(name string, required bool) (string, error)
type SurveyMultiselect ¶
type SurveyMultiselect struct{}
func NewSurveyMultiselect ¶
func NewSurveyMultiselect() SurveyMultiselect
func (SurveyMultiselect) Multiselect ¶
func (SurveyMultiselect) Multiselect(in formula.Input) ([]string, error)
type SurveyPassword ¶
type SurveyPassword struct{}
func NewSurveyPassword ¶
func NewSurveyPassword() SurveyPassword
type SurveyTextValidator ¶
type SurveyTextValidator struct{}
func NewSurveyTextValidator ¶
func NewSurveyTextValidator() SurveyTextValidator
Click to show internal directories.
Click to hide internal directories.