Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConsoleGetter ¶
type ConsoleGetter struct {
// contains filtered or unexported fields
}
func NewConsoleGetter ¶
func NewConsoleGetter() ConsoleGetter
type Variable ¶
type Variable struct { Name string `json:"name,omitempty" yaml:"name"` Message string `json:"message,omitempty" yaml:"message"` Help string `json:"help,omitempty" yaml:"help"` Default interface{} `json:"default,omitempty" yaml:"default,omitempty"` Type VariableType `json:"type,omitempty" yaml:"type"` Options []string `json:"options,omitempty" yaml:"options,omitempty"` Validators []string `json:"validators,omitempty" yaml:"validators,omitempty"` Transformer string `json:"transformer,omitempty" yaml:"transformer,omitempty"` }
Variable is a representation of input variables in the template
type VariableType ¶
type VariableType string
var ( TextType VariableType = "text" ConfirmType VariableType = "confirm" MultiLineType VariableType = "multi_line" SelectType VariableType = "select" MultiSelectType VariableType = "multi_select" )
func (VariableType) Validate ¶
func (vt VariableType) Validate() error
type VariablesGetter ¶
Click to show internal directories.
Click to hide internal directories.