Documentation ¶
Index ¶
- func DefaultView(m *Model) string
- func NewLongAnswerField() *longAnswerField
- func NewShortAnswerField(p string) *shortAnswerField
- func StartInteractiveTerminal(questions []ProjectQuestion)
- type CheckBoxField
- func (m *CheckBoxField) Blink() tea.Msg
- func (a *CheckBoxField) Blur() tea.Msg
- func (a *CheckBoxField) Exited() bool
- func (m *CheckBoxField) Focus() tea.Cmd
- func (m *CheckBoxField) Init() tea.Cmd
- func (a *CheckBoxField) Selected() map[int]any
- func (a *CheckBoxField) SetExited()
- func (a *CheckBoxField) SetValue(s string)
- func (m *CheckBoxField) Update(msg tea.Msg) (Input, tea.Cmd)
- func (a *CheckBoxField) Value() string
- func (m *CheckBoxField) View() string
- type Input
- type Model
- type ProjectQuestion
- type Styles
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultView ¶ added in v0.5.0
func NewLongAnswerField ¶
func NewLongAnswerField() *longAnswerField
func NewShortAnswerField ¶
func NewShortAnswerField(p string) *shortAnswerField
func StartInteractiveTerminal ¶
func StartInteractiveTerminal(questions []ProjectQuestion)
Types ¶
type CheckBoxField ¶ added in v0.5.0
type CheckBoxField struct {
// contains filtered or unexported fields
}
func NewCheckBoxField ¶ added in v0.5.0
func NewCheckBoxField(t string, choices []string) *CheckBoxField
func (*CheckBoxField) Blink ¶ added in v0.5.0
func (m *CheckBoxField) Blink() tea.Msg
func (*CheckBoxField) Blur ¶ added in v0.5.0
func (a *CheckBoxField) Blur() tea.Msg
func (*CheckBoxField) Exited ¶ added in v0.6.3
func (a *CheckBoxField) Exited() bool
func (*CheckBoxField) Focus ¶ added in v0.5.0
func (m *CheckBoxField) Focus() tea.Cmd
func (*CheckBoxField) Init ¶ added in v0.5.0
func (m *CheckBoxField) Init() tea.Cmd
func (*CheckBoxField) Selected ¶ added in v0.5.0
func (a *CheckBoxField) Selected() map[int]any
func (*CheckBoxField) SetExited ¶ added in v0.6.3
func (a *CheckBoxField) SetExited()
func (*CheckBoxField) SetValue ¶ added in v0.5.0
func (a *CheckBoxField) SetValue(s string)
func (*CheckBoxField) Value ¶ added in v0.5.0
func (a *CheckBoxField) Value() string
func (*CheckBoxField) View ¶ added in v0.5.0
func (m *CheckBoxField) View() string
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func New ¶
func New(questions []ProjectQuestion) *Model
type ProjectQuestion ¶
type ProjectQuestion struct { Input Input Key string PlaceHolder string Question string Answer string }
func NewCheckboxQuestion ¶ added in v0.5.0
func NewCheckboxQuestion(k, t string, items []string) ProjectQuestion
func NewLongQuestion ¶
func NewLongQuestion(k, q, p string) ProjectQuestion
func NewQuestion ¶
func NewQuestion(k, q, p string) ProjectQuestion
func NewShortQuestion ¶
func NewShortQuestion(k, q, p string) ProjectQuestion
Click to show internal directories.
Click to hide internal directories.