Versions in this module Expand all Collapse all v1 v1.1.2 Jan 31, 2025 v1.1.1 Jan 30, 2025 Changes in this version + func SetStackInContext(ctx context.Context, stack *StackModel) context.Context + type BackMsg struct + Handled bool + type CTXKey struct + type CTXValue struct + Stack *StackModel + type ClearScreenMsg struct + NextMsg tea.Msg + type ConfigWrapper struct + func NewConfigWrapper(next tea.Model, breadcrumb string, m tea.Model) *ConfigWrapper + func (c *ConfigWrapper) Init() tea.Cmd + func (c *ConfigWrapper) Update(msg tea.Msg) (tea.Model, tea.Cmd) + func (c *ConfigWrapper) View() string + type ConfirmModel struct + func NewConfirmModel(message string, onConfirm func() tea.Cmd, onCancel func() tea.Cmd) *ConfirmModel + func (m *ConfirmModel) Init() tea.Cmd + func (m *ConfirmModel) Update(msg tea.Msg) (*ConfirmModel, tea.Cmd) + func (m *ConfirmModel) View() string + type CustomOption struct + Function func(row table.Row) tea.Cmd + Key string + Title string + func (o CustomOption) String() string + type DimensionModel interface + SetHeight func(int) + SetWidth func(int) + type DoneLoadingDataMsg struct + type DoneMsg struct + Message string + type ErrorModel struct + Err error + func NewErrorModel(err error) *ErrorModel + func (m *ErrorModel) Init() tea.Cmd + func (m *ErrorModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) + func (m *ErrorModel) View() string + type ErrorMsg struct + Err error + type ExecDone struct + Error error + type ExecModel struct + func NewExecModel(loadCmd TypedCmd[*exec.Cmd]) *ExecModel + func (m *ExecModel) Init() tea.Cmd + func (m *ExecModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) + func (m *ExecModel) View() string + type Form struct + func NewForm(huhForm *huh.Form) *Form + func (f *Form) Init() tea.Cmd + func (f *Form) SetHeight(height int) + func (f *Form) SetWidth(width int) + func (f *Form) Update(msg tea.Msg) (tea.Model, tea.Cmd) + func (f *Form) View() string + type FormAction struct + func NewFormAction[T any](action func(T) tea.Cmd, onSubmit TypedCmd[T]) FormAction[T] + func (fa *FormAction[T]) Init() tea.Cmd + func (fa *FormAction[T]) Update(msg tea.Msg) (tea.Model, tea.Cmd) + func (fa *FormAction[T]) View() string + type FormWithAction struct + func NewFormWithAction[T any](action FormAction[T], form tea.Model) *FormWithAction[T] + func (df *FormWithAction[T]) Init() tea.Cmd + func (df *FormWithAction[T]) Update(msg tea.Msg) (tea.Model, tea.Cmd) + func (df *FormWithAction[T]) View() string + type List struct + func NewList[T any](title string, loadData TypedCmd[[]T], makeListItem func(T) ListItem, ...) *List[T] + func (m *List[T]) Init() tea.Cmd + func (m *List[T]) Update(msg tea.Msg) (tea.Model, tea.Cmd) + func (m *List[T]) View() string + type ListItem interface + Description func() string + FilterValue func() string + Height func() int + Title func() string + type ListOption func(*List[T]) + func WithOnSelect[T any](onSelect func(ListItem) tea.Cmd) ListOption[T] + type LoadDataMsg struct + Data T + HasMore bool + type LoadFunc func() (*client.Logs200Response, <-chan *lclient.Log, error) + type LoadingDataMsg struct + Cmd tea.Cmd + LoadingMsgTmpl string + type LogModel struct + func NewLogModel(loadFunc TypedCmd[*LogResult]) *LogModel + func (m *LogModel) Init() tea.Cmd + func (m *LogModel) KeyBinds() []key.Binding + func (m *LogModel) SetHeight(height int) + func (m *LogModel) SetWidth(width int) + func (m *LogModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) + func (m *LogModel) View() string + type LogResult struct + LogChannel <-chan *lclient.Log + Logs *client.Logs200Response + type ModelWithCmd struct + Breadcrumb string + Cmd string + Model tea.Model + type ModelWithConfirm struct + func NewModelWithConfirm(model tea.Model) *ModelWithConfirm + func (m *ModelWithConfirm) Init() tea.Cmd + func (m *ModelWithConfirm) Update(msg tea.Msg) (tea.Model, tea.Cmd) + func (m *ModelWithConfirm) View() string + type ScrollBarModel struct + func NewScrollBarModel(height int, percent float64) *ScrollBarModel + func (m *ScrollBarModel) Init() tea.Cmd + func (m *ScrollBarModel) ScrollPercent(percent float64) + func (m *ScrollBarModel) SetHeight(height int) + func (m *ScrollBarModel) Update(_ tea.Msg) (*ScrollBarModel, tea.Cmd) + func (m *ScrollBarModel) View() string + type ShowConfirmMsg struct + Message string + OnConfirm func() tea.Cmd + type SimpleLoadedMsg string + type SimpleModel struct + func NewSimpleModel(loadFunc TypedCmd[string]) *SimpleModel + func (m *SimpleModel) Init() tea.Cmd + func (m *SimpleModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) + func (m *SimpleModel) View() string + type StackModel struct + func GetStackFromContext(ctx context.Context) *StackModel + func NewStack() *StackModel + func (m *StackModel) Init() tea.Cmd + func (m *StackModel) Pop() *ModelWithCmd + func (m *StackModel) Push(model ModelWithCmd) tea.Cmd + func (m *StackModel) PushError(err error) tea.Cmd + func (m *StackModel) StackSizeMsg() StackSizeMsg + func (m *StackModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) + func (m *StackModel) View() string + func (m *StackModel) WithDone(f func(tea.Msg) (tea.Model, tea.Cmd)) + type StackSizeMsg struct + Height int + Top int + Width int + type Tab struct + Content DimensionModel + Name string + type TabModel struct + Tabs []*Tab + func NewTabModel(tabs []*Tab) *TabModel + func (m *TabModel) CurrentTab() *Tab + func (m *TabModel) Header() string + func (m *TabModel) Init() tea.Cmd + func (m *TabModel) KeyBinds() []key.Binding + func (m *TabModel) SetHeight(height int) + func (m *TabModel) SetWidth(width int) + func (m *TabModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) + func (m *TabModel) View() string + type Table struct + Model table.Model + func NewTable[T any](columns []table.Column, loadData TypedCmd[[]T], createRow func(T) table.Row, ...) *Table[T] + func (t *Table[T]) Init() tea.Cmd + func (t *Table[T]) Update(msg tea.Msg) (tea.Model, tea.Cmd) + func (t *Table[T]) View() string + type TableOption func(*Table[T]) + func WithCustomOptions[T any](options []CustomOption) TableOption[T] + func WithHeader[T any](message string) TableOption[T] + type TypedCmd tea.Cmd + func (c TypedCmd[D]) Unwrap() tea.Cmd + type UserFacingError struct + Err error + Message string + Title string + func (u UserFacingError) Error() string