Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
func (*Action) UnmarshalYAML ¶
type Cfg ¶
type Cfg struct { Menu string `yaml:"menu"` Msg string `yaml:"msg"` Title string `yaml:"title"` Panels []*Form `yaml:",flow"` // contains filtered or unexported fields }
func (*Cfg) ShowFinished ¶
func (*Cfg) ShowRunning ¶
func (c *Cfg) ShowRunning()
func (*Cfg) UnmarshalYAML ¶
type Form ¶
type Form struct { Title string `yaml:"title"` Items []*Item `yaml:"form,flow"` // contains filtered or unexported fields }
func (*Form) UnmarshalYAML ¶
type Item ¶
type Item struct { // name: text Name string `yaml:"name"` Label string `yaml:"label"` Type TypeItem `yaml:"type"` Options []string `yaml:"options,flow"` Todo Action `yaml:"action"` LoadOn string `yaml:"loadon"` // contains filtered or unexported fields }
A Form item
func (*Item) UnmarshalYAML ¶
type TypeItem ¶
type TypeItem string
Form item type
const ( Text TypeItem = "text" Password TypeItem = "password" File TypeItem = "file" FileOpen TypeItem = "file_open" FileSave TypeItem = "file_save" Dir TypeItem = "dir" Select TypeItem = "select" Execute TypeItem = "execute" Cancel TypeItem = "cancel" Next TypeItem = "next" Back TypeItem = "back" )
Click to show internal directories.
Click to hide internal directories.