Documentation
¶
Index ¶
- type CloseMsg
- type CreateMsg
- type Model
- func (m *Model) Cursor() int
- func (m *Model) Error(err error)
- func (m *Model) EscalateRemove(risks []string)
- func (m *Model) Height() int
- func (m *Model) Init() tea.Cmd
- func (m *Model) Items() []worktree.Worktree
- func (m *Model) Refresh() tea.Cmd
- func (m *Model) ReportCreateResult(err error)
- func (m *Model) ReportRemoveResult(err error) tea.Cmd
- func (m *Model) SetBusy(busy bool, status string)
- func (m *Model) SetItems(items []worktree.Worktree)
- func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (m *Model) View() tea.View
- func (m *Model) Width() int
- type OpenMsg
- type RefreshMsg
- type RemoveMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateMsg ¶
type CreateMsg struct{ Options worktree.CreateOptions }
CreateMsg asks the parent to create and bind a worktree.
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is a full-screen embedded managed-worktree browser.
func New ¶
func New(root string, store session.Store, boundDir string, width, height int, styles *ui.Styles) *Model
New constructs an embedded worktree browser.
func (*Model) EscalateRemove ¶
EscalateRemove presents the required second, explicit force confirmation.
func (*Model) ReportCreateResult ¶
ReportCreateResult keeps a failed create visible in its form.
func (*Model) ReportRemoveResult ¶
ReportRemoveResult reports a completed removal. On success it refreshes; a blocked normal removal should instead use EscalateRemove.
Click to show internal directories.
Click to hide internal directories.