Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiffViewerComponent ¶
type DiffViewerComponent struct {
// contains filtered or unexported fields
}
func NewDiffViewerComponent ¶
func NewDiffViewerComponent(width, height int) DiffViewerComponent
func (DiffViewerComponent) SetContent ¶
func (d DiffViewerComponent) SetContent(content string) DiffViewerComponent
func (DiffViewerComponent) Update ¶
func (d DiffViewerComponent) Update(msg tea.Msg) (DiffViewerComponent, tea.Cmd)
func (DiffViewerComponent) View ¶
func (d DiffViewerComponent) View() string
type InputComponent ¶
type InputComponent struct {
// contains filtered or unexported fields
}
func NewInputComponent ¶
func NewInputComponent(label, placeholder string) InputComponent
func (InputComponent) Init ¶
func (i InputComponent) Init() tea.Cmd
func (*InputComponent) SetValue ¶
func (i *InputComponent) SetValue(v string)
func (InputComponent) Update ¶
func (i InputComponent) Update(msg tea.Msg) (InputComponent, tea.Cmd)
func (InputComponent) Value ¶
func (i InputComponent) Value() string
func (InputComponent) View ¶
func (i InputComponent) View() string
type ListComponent ¶
type ListComponent struct {
// contains filtered or unexported fields
}
func NewListComponent ¶
func NewListComponent(title string, items []list.Item, width, height int) ListComponent
func (ListComponent) SelectedItem ¶
func (l ListComponent) SelectedItem() list.Item
func (ListComponent) Update ¶
func (l ListComponent) Update(msg tea.Msg) (ListComponent, tea.Cmd)
func (ListComponent) View ¶
func (l ListComponent) View() string
type ListItem ¶
type ListItem struct {
// contains filtered or unexported fields
}
func NewListItem ¶
func (ListItem) Description ¶
func (ListItem) FilterValue ¶
type ProgressComponent ¶
type ProgressComponent struct {
// contains filtered or unexported fields
}
func NewProgressComponent ¶
func NewProgressComponent(label string) ProgressComponent
func (ProgressComponent) SetPercent ¶
func (p ProgressComponent) SetPercent(pct float64) ProgressComponent
func (ProgressComponent) Update ¶
func (p ProgressComponent) Update(msg tea.Msg) (ProgressComponent, tea.Cmd)
func (ProgressComponent) View ¶
func (p ProgressComponent) View() string
type SpinnerComponent ¶
type SpinnerComponent struct {
// contains filtered or unexported fields
}
func NewSpinnerComponent ¶
func NewSpinnerComponent(message string) SpinnerComponent
func (SpinnerComponent) Init ¶
func (s SpinnerComponent) Init() tea.Cmd
func (SpinnerComponent) Update ¶
func (s SpinnerComponent) Update(msg tea.Msg) (SpinnerComponent, tea.Cmd)
func (SpinnerComponent) View ¶
func (s SpinnerComponent) View() string
Click to show internal directories.
Click to hide internal directories.