Documentation
¶
Index ¶
- type Feature
- func (f *Feature) Active() bool
- func (f *Feature) ApplyTheme(styles theme.Styles)
- func (f *Feature) BackgroundActive() bool
- func (f *Feature) CancelFlow(hint string)
- func (f *Feature) ClearFlow()
- func (f *Feature) ClearWizard()
- func (f *Feature) FullHelp() [][]key.Binding
- func (f *Feature) HandleBackgroundFrame(msg progress.FrameMsg) (tea.Cmd, bool)
- func (f *Feature) HandleUIMsg(msg tea.Msg) (tea.Model, tea.Cmd)
- func (f *Feature) Init() tea.Cmd
- func (f *Feature) Name() string
- func (f *Feature) OnPathsStep() bool
- func (f *Feature) PrepareWizardSelected(candidate domaininstall.Candidate)
- func (f *Feature) RenderBackgroundOverlay(main string, mainHeight int) string
- func (f *Feature) RenderDialogArea() string
- func (f *Feature) ShortHelp() []key.Binding
- func (f *Feature) StartFlow() (tea.Model, tea.Cmd)
- func (f *Feature) StartSelected(agentIDs []string, scope extension.Scope) (tea.Model, tea.Cmd)
- func (f *Feature) SyncHint()
- func (f *Feature) Update(msg tea.Msg) (tea.Cmd, bool)
- func (f *Feature) View(width, height int) string
- func (f *Feature) WizardOpen() bool
- func (f *Feature) WizardSearching() bool
- type Host
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Feature ¶
type Feature struct {
// contains filtered or unexported fields
}
Feature owns the search-and-install wizard and background install progress.
func (*Feature) ApplyTheme ¶
ApplyTheme forwards theme to the open wizard.
func (*Feature) BackgroundActive ¶
func (*Feature) CancelFlow ¶
func (*Feature) ClearWizard ¶
func (f *Feature) ClearWizard()
ClearWizard drops the open wizard without stopping a background install.
func (*Feature) HandleBackgroundFrame ¶
HandleBackgroundFrame forwards progress frame messages to the background bar.
func (*Feature) OnPathsStep ¶
OnPathsStep reports whether the wizard is on the install-paths step.
func (*Feature) PrepareWizardSelected ¶
func (f *Feature) PrepareWizardSelected(candidate domaininstall.Candidate)
PrepareWizardSelected sets the selected candidate on an open wizard (tests only).
func (*Feature) RenderBackgroundOverlay ¶
func (*Feature) RenderDialogArea ¶
func (*Feature) StartSelected ¶
StartSelected begins installing the wizard's selected candidate (exported for tests).
func (*Feature) WizardOpen ¶
WizardOpen reports whether the install wizard is visible.
func (*Feature) WizardSearching ¶
WizardSearching reports whether the wizard is waiting on registry search.
type Host ¶
type Host interface {
feature.BaseHost
ActiveTab() panel.Tab
ActivePanelSearchInstall() bool
CWD() string
Home() string
AgentIDs() []string
ErrMsg() string
SetStatus(string)
ClearError()
ReportError(error)
ContentWidth() int
PaneSizes() (int, int, int, int)
PaneSizesFor(int) (int, int, int, int)
BeginScanAllCmd() tea.Cmd
SetHelpShowAll(bool)
}
Host exposes install-flow needs from the app Model.