Documentation
¶
Index ¶
- type CancelInstallMsg
- type ClosedMsg
- type Config
- type HintMsg
- type InstallDoneMsg
- type Model
- func (m *Model) ApplyTheme(styles theme.Styles)
- func (m Model) FooterHint() string
- func (m Model) FullHelp() [][]key.Binding
- func (m Model) Init() tea.Cmd
- func (m Model) OnPathsStep() bool
- func (m Model) PlaceInPane(paneWidth, paneHeight int) string
- func (m Model) Previewing() bool
- func (m Model) Searching() bool
- func (m Model) Selected() domaininstall.Candidate
- func (m *Model) SetSize(width, height int)
- func (m Model) ShortHelp() []key.Binding
- func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)
- func (m Model) View() string
- func (m Model) WithSelected(c domaininstall.Candidate) Model
- type PreviewDoneMsg
- type ProgressTickMsg
- type RequestInstallMsg
- type Row
- type SearchDoneMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CancelInstallMsg ¶
type CancelInstallMsg struct{}
CancelInstallMsg asks the host to abort an in-flight install (second Esc).
type ClosedMsg ¶
type ClosedMsg struct {
Hint string
}
ClosedMsg means the user dismissed the wizard.
type Config ¶
type Config struct {
Styles theme.Styles
Provider serviceinstall.Provider
AgentIDs []string
CWD string
Home string
GetErrMsg func() string
SetErrMsg func(string)
ClearErr func()
}
Config wires host dependencies into the install wizard.
type HintMsg ¶
type HintMsg struct {
Text string
}
HintMsg asks the host to show a transient footer hint without closing.
type InstallDoneMsg ¶
InstallDoneMsg is sent when an install command finishes.
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is a composable Bubble Tea sub-model for search & install (skills.sh).
func (*Model) ApplyTheme ¶
func (Model) FooterHint ¶
func (Model) OnPathsStep ¶ added in v0.1.1
func (Model) PlaceInPane ¶
func (Model) Previewing ¶ added in v0.1.3
func (Model) Selected ¶
func (m Model) Selected() domaininstall.Candidate
Selected returns the skill chosen for install.
func (Model) WithSelected ¶
func (m Model) WithSelected(c domaininstall.Candidate) Model
WithSelected prepares the paths step for a chosen candidate (used by tests).
type PreviewDoneMsg ¶ added in v0.1.3
PreviewDoneMsg is sent when the selected result preview finishes loading.
type ProgressTickMsg ¶
type ProgressTickMsg struct{}
ProgressTickMsg drives the indeterminate progress bar while installing.
type RequestInstallMsg ¶
RequestInstallMsg asks the host to run Install with a cancellable context.
type Row ¶ added in v0.1.1
Row is a list entry in the install wizard (no dependency on app/panel).
func (Row) FilterValue ¶ added in v0.1.1
type SearchDoneMsg ¶
type SearchDoneMsg struct {
Results []domaininstall.Candidate
Err error
}
SearchDoneMsg is sent when a registry search finishes.