Documentation ¶
Index ¶
- func ActionTitle(action sunbeam.Action) string
- func AnsiStyle() ansi.StyleConfig
- func Draw(page Page) error
- func ExitCmd() tea.Msg
- func ExtractPreferencesFromEnv(alias string, extension extensions.Extension) (map[string]any, error)
- func FindMissingInputs(inputs []sunbeam.Input, params map[string]any) []sunbeam.Input
- func FindMissingPreferences(preferenceInputs []sunbeam.Input, values map[string]any) []sunbeam.Input
- func PopPageCmd() tea.Msg
- func PushPageCmd(page Page) tea.Cmd
- func RenderItem(title string, subtitle string, accessories []string, width int, selected bool) string
- type Checkbox
- func (cb *Checkbox) Blur()
- func (cb *Checkbox) Focus() tea.Cmd
- func (cb *Checkbox) Height() int
- func (cb *Checkbox) Name() string
- func (cb *Checkbox) SetWidth(width int)
- func (cb *Checkbox) Title() string
- func (cb *Checkbox) Toggle()
- func (cb Checkbox) Update(msg tea.Msg) (Input, tea.Cmd)
- func (cb Checkbox) Value() any
- func (cb Checkbox) View() string
- type Detail
- func (d *Detail) Blur() tea.Cmd
- func (d *Detail) Focus() tea.Cmd
- func (d *Detail) Init() tea.Cmd
- func (c *Detail) RefreshContent() error
- func (d *Detail) SetIsLoading(isLoading bool) tea.Cmd
- func (c *Detail) SetSize(width, height int)
- func (c *Detail) Update(msg tea.Msg) (Page, tea.Cmd)
- func (c *Detail) View() string
- type DetailMsg
- type ExitMsg
- 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) ResetSelection()
- func (f *Filter) Select(id string)
- 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 Form
- func (c *Form) Blur() tea.Cmd
- func (c *Form) CurrentItem() Input
- func (c Form) Focus() tea.Cmd
- func (c Form) Init() tea.Cmd
- func (c *Form) ScrollViewport()
- func (c *Form) SetIsLoading(isLoading bool) tea.Cmd
- func (c *Form) SetSize(width, height int)
- func (c Form) Update(msg tea.Msg) (Page, tea.Cmd)
- func (c *Form) View() string
- type HideNotificationMsg
- type History
- type Input
- type List
- func (c *List) Blur() tea.Cmd
- func (c *List) FilterItems(query string)
- func (c *List) Focus() tea.Cmd
- func (c *List) Init() tea.Cmd
- func (c List) Query() string
- func (l *List) ResetSelection()
- func (c List) Selection() (sunbeam.ListItem, bool)
- func (l *List) SetActions(actions ...sunbeam.Action)
- func (c *List) SetAutoRefreshSeconds(autoRefreshSeconds int)
- func (l *List) SetEmptyText(text string)
- func (c *List) SetIsLoading(isLoading bool) tea.Cmd
- func (c *List) SetItems(items ...sunbeam.ListItem)
- func (c *List) SetQuery(query string) tea.Cmd
- func (c *List) SetShowDetail(showDetail bool)
- func (c *List) SetSize(width, height int)
- func (c *List) Update(msg tea.Msg) (Page, tea.Cmd)
- func (c List) View() string
- type ListFocus
- type ListItem
- type NumberField
- type Page
- type Paginator
- type PopPageMsg
- type PushPageMsg
- type QueryChangeMsg
- type ReloadMsg
- type RootList
- func (c *RootList) Blur() tea.Cmd
- func (c *RootList) Focus() tea.Cmd
- func (c *RootList) Init() tea.Cmd
- func (c *RootList) Reload() tea.Cmd
- func (c *RootList) SetError(err error) tea.Cmd
- func (c *RootList) SetSize(width, height int)
- func (c *RootList) Update(msg tea.Msg) (Page, tea.Cmd)
- func (c *RootList) View() string
- type Runner
- func (c *Runner) Blur() tea.Cmd
- func (c *Runner) Focus() tea.Cmd
- func (c *Runner) Init() tea.Cmd
- func (c *Runner) Reload() tea.Cmd
- func (c *Runner) SetIsLoading(isLoading bool) tea.Cmd
- func (c *Runner) SetSize(w int, h int)
- func (c *Runner) Update(msg tea.Msg) (Page, tea.Cmd)
- func (c *Runner) View() string
- type ShowNotificationMsg
- type StatusBar
- type TextArea
- type TextField
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActionTitle ¶
func AnsiStyle ¶
func AnsiStyle() ansi.StyleConfig
func FindMissingInputs ¶
func FindMissingPreferences ¶
func PopPageCmd ¶
func PushPageCmd ¶
Types ¶
type Checkbox ¶
type Checkbox struct {
// contains filtered or unexported fields
}
func NewCheckbox ¶
type Detail ¶
func (*Detail) RefreshContent ¶
type Filter ¶
type Filter struct {
Width, Height int
Query string
Less func(i, j FilterItem) bool
EmptyText string
DrawLines bool
// contains filtered or unexported fields
}
func NewFilter ¶
func NewFilter(items ...FilterItem) Filter
func (*Filter) CursorDown ¶
func (m *Filter) CursorDown()
func (*Filter) FilterItems ¶
func (*Filter) ResetSelection ¶
func (f *Filter) ResetSelection()
func (Filter) Selection ¶
func (f Filter) Selection() FilterItem
func (*Filter) SetItems ¶
func (f *Filter) SetItems(items ...FilterItem)
type FilterItem ¶
type Form ¶
type Form struct {
// contains filtered or unexported fields
}
func (*Form) CurrentItem ¶
func (*Form) ScrollViewport ¶
func (c *Form) ScrollViewport()
type HideNotificationMsg ¶
type HideNotificationMsg struct{}
type Input ¶
type Input interface { Name() string Title() string Value() any Focus() tea.Cmd Blur() Height() int SetWidth(int) Update(tea.Msg) (Input, tea.Cmd) View() string }
func NewNumberField ¶
func NewTextArea ¶
type List ¶
type List struct { Actions []sunbeam.Action OnQueryChange func(string) tea.Cmd OnSelect func(string) tea.Cmd // contains filtered or unexported fields }
func (*List) FilterItems ¶
func (*List) ResetSelection ¶
func (l *List) ResetSelection()
func (*List) SetActions ¶
func (*List) SetAutoRefreshSeconds ¶ added in v1.0.1
func (*List) SetEmptyText ¶
func (*List) SetShowDetail ¶
type NumberField ¶
type NumberField struct {
*TextField
}
func (NumberField) Value ¶
func (n NumberField) Value() any
type Paginator ¶
type Paginator struct {
// contains filtered or unexported fields
}
func NewPaginator ¶
type PopPageMsg ¶
type PopPageMsg struct{}
type PushPageMsg ¶
type PushPageMsg struct {
Page Page
}
type QueryChangeMsg ¶
type QueryChangeMsg string
type RootList ¶
type RootList struct {
// contains filtered or unexported fields
}
func NewRootList ¶
type ShowNotificationMsg ¶
type ShowNotificationMsg struct {
Title string
}
type StatusBar ¶
type StatusBar struct { Width int // contains filtered or unexported fields }
func NewStatusBar ¶
func (*StatusBar) FilterActions ¶
func (*StatusBar) SetActions ¶
func (*StatusBar) SetActionsNoSelection ¶ added in v1.0.1
Click to show internal directories.
Click to hide internal directories.