Documentation
¶
Index ¶
- type Action
- type ActionList
- func (al *ActionList) Blur()
- func (al *ActionList) Clear()
- func (al *ActionList) Focus() tea.Cmd
- func (al ActionList) Focused() bool
- func (al *ActionList) SetActions(actions ...Action)
- func (al *ActionList) SetSize(w, h int)
- func (al *ActionList) SetTitle(title string)
- func (al ActionList) Update(msg tea.Msg) (ActionList, tea.Cmd)
- func (al ActionList) View() string
- type CommandOutput
- type CommandRunner
- type CopyTextMsg
- type Detail
- type DetailMsg
- type DropDown
- func (d *DropDown) Blur()
- func (d *DropDown) Focus() tea.Cmd
- func (dd DropDown) HasMatch() bool
- func (dd *DropDown) Height() int
- func (dd *DropDown) SetWidth(width int)
- func (d DropDown) Title() string
- func (d *DropDown) Update(msg tea.Msg) (FormInput, tea.Cmd)
- func (d DropDown) Value() string
- func (dd DropDown) View() string
- type DropDownItem
- type Filter
- func (m *Filter) CursorDown()
- func (m *Filter) CursorUp()
- func (f *Filter) FilterItems(query string)
- func (m Filter) Init() tea.Cmd
- func (f Filter) Selection() FilterItem
- func (f *Filter) SetItems(items []FilterItem)
- func (f *Filter) SetSize(width, height int)
- func (f Filter) Update(msg tea.Msg) (Filter, tea.Cmd)
- func (m Filter) View() string
- type FilterItem
- type Footer
- type Form
- type FormInput
- type FormItem
- type Generator
- type Header
- type IsLoadingMsg
- type List
- func (c *List) Init() tea.Cmd
- func (c List) Query() string
- func (c *List) RefreshPreview()
- func (c List) Selection() *ListItem
- func (c *List) SetIsLoading(isLoading bool) tea.Cmd
- func (c *List) SetItems(items []ListItem) tea.Cmd
- func (c *List) SetSize(width, height int)
- func (c *List) SetTitle(title string)
- func (c *List) Update(msg tea.Msg) (Page, tea.Cmd)
- func (c List) View() string
- type ListItem
- type Model
- type OpenMsg
- type Page
- type PopPageMsg
- type PreviewContentMsg
- type PushPageMsg
- type ReloadPageMsg
- type RunCommandMsg
- type SelectionChangeMsg
- type SubmitFormMsg
- type SunbeamOptions
- type TextArea
- type TextInput
- type UpdateQueryMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionList ¶
type ActionList struct {
// contains filtered or unexported fields
}
func NewActionList ¶
func NewActionList() ActionList
func (*ActionList) Blur ¶
func (al *ActionList) Blur()
func (*ActionList) Clear ¶ added in v0.0.9
func (al *ActionList) Clear()
func (*ActionList) Focus ¶
func (al *ActionList) Focus() tea.Cmd
func (ActionList) Focused ¶
func (al ActionList) Focused() bool
func (*ActionList) SetActions ¶
func (al *ActionList) SetActions(actions ...Action)
func (*ActionList) SetSize ¶
func (al *ActionList) SetSize(w, h int)
func (*ActionList) SetTitle ¶
func (al *ActionList) SetTitle(title string)
func (ActionList) Update ¶
func (al ActionList) Update(msg tea.Msg) (ActionList, tea.Cmd)
func (ActionList) View ¶
func (al ActionList) View() string
type CommandOutput ¶
type CommandOutput []byte
type CommandRunner ¶ added in v0.1.0
type CommandRunner struct {
// contains filtered or unexported fields
}
func NewCommandRunner ¶ added in v0.1.0
func NewCommandRunner(generator Generator) *CommandRunner
func (*CommandRunner) Init ¶ added in v0.1.0
func (c *CommandRunner) Init() tea.Cmd
func (*CommandRunner) Run ¶ added in v0.1.0
func (c *CommandRunner) Run() tea.Cmd
func (*CommandRunner) SetIsloading ¶ added in v0.1.0
func (c *CommandRunner) SetIsloading(isLoading bool) tea.Cmd
func (*CommandRunner) SetSize ¶ added in v0.1.0
func (c *CommandRunner) SetSize(width, height int)
func (*CommandRunner) View ¶ added in v0.1.0
func (c *CommandRunner) View() string
type CopyTextMsg ¶
type Detail ¶
type Detail struct {
Style lipgloss.Style
ContentCmd func() string
// contains filtered or unexported fields
}
func (*Detail) RefreshPreview ¶ added in v0.1.0
func (c *Detail) RefreshPreview()
type DropDown ¶
type DropDown struct {
// contains filtered or unexported fields
}
func NewDropDown ¶
type DropDownItem ¶
type DropDownItem struct {
// contains filtered or unexported fields
}
func (DropDownItem) FilterValue ¶
func (d DropDownItem) FilterValue() string
func (DropDownItem) ID ¶
func (d DropDownItem) ID() string
type Filter ¶
type Filter struct {
Width, Height int
Query string
Less func(i, j FilterItem) bool
DrawLines bool
// contains filtered or unexported fields
}
func (*Filter) CursorDown ¶
func (m *Filter) CursorDown()
func (*Filter) FilterItems ¶
func (Filter) Selection ¶
func (f Filter) Selection() FilterItem
func (*Filter) SetItems ¶
func (f *Filter) SetItems(items []FilterItem)
type FilterItem ¶
type Footer ¶
type Footer struct {
// contains filtered or unexported fields
}
func (*Footer) SetBindings ¶
type Form ¶
type Form struct {
// contains filtered or unexported fields
}
func (*Form) CurrentItem ¶ added in v0.0.9
func (*Form) ScrollViewport ¶ added in v0.0.9
func (c *Form) ScrollViewport()
type IsLoadingMsg ¶ added in v0.0.9
type IsLoadingMsg struct{}
type List ¶
func (*List) RefreshPreview ¶ added in v0.1.0
func (c *List) RefreshPreview()
type ListItem ¶
type ListItem struct {
Id string
Title string
Subtitle string
PreviewFunc func() string
Accessories []string
Actions []Action
}
func ParseScriptItem ¶
func (ListItem) FilterValue ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func NewModel ¶
func NewModel(root Page, options SunbeamOptions) *Model
type PopPageMsg ¶ added in v0.1.0
type PopPageMsg struct{}
type PreviewContentMsg ¶
type PreviewContentMsg string
type PushPageMsg ¶ added in v0.1.0
type ReloadPageMsg ¶
type RunCommandMsg ¶ added in v0.1.0
type SelectionChangeMsg ¶ added in v0.1.0
type SelectionChangeMsg struct {
SelectionId string
}
type SubmitFormMsg ¶ added in v0.1.0
type SunbeamOptions ¶ added in v0.1.0
type TextArea ¶
func NewTextArea ¶
type TextInput ¶
func NewTextInput ¶
type UpdateQueryMsg ¶ added in v0.1.0
type UpdateQueryMsg struct {
Query string
}
Click to show internal directories.
Click to hide internal directories.