install

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

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 New

func New(host Host) *Feature

New returns an install feature wired to host.

func (*Feature) Active

func (f *Feature) Active() bool

func (*Feature) ApplyTheme

func (f *Feature) ApplyTheme(styles theme.Styles)

ApplyTheme forwards theme to the open wizard.

func (*Feature) BackgroundActive

func (f *Feature) BackgroundActive() bool

func (*Feature) CancelFlow

func (f *Feature) CancelFlow(hint string)

func (*Feature) ClearFlow

func (f *Feature) ClearFlow()

func (*Feature) ClearWizard

func (f *Feature) ClearWizard()

ClearWizard drops the open wizard without stopping a background install.

func (*Feature) FullHelp

func (f *Feature) FullHelp() [][]key.Binding

FullHelp returns multi-line footer key help for the install wizard.

func (*Feature) HandleBackgroundFrame

func (f *Feature) HandleBackgroundFrame(msg progress.FrameMsg) (tea.Cmd, bool)

HandleBackgroundFrame forwards progress frame messages to the background bar.

func (*Feature) HandleUIMsg

func (f *Feature) HandleUIMsg(msg tea.Msg) (tea.Model, tea.Cmd)

func (*Feature) Init

func (f *Feature) Init() tea.Cmd

func (*Feature) Name

func (f *Feature) Name() string

func (*Feature) OnPathsStep

func (f *Feature) OnPathsStep() bool

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 (f *Feature) RenderBackgroundOverlay(main string, mainHeight int) string

func (*Feature) RenderDialogArea

func (f *Feature) RenderDialogArea() string

func (*Feature) ShortHelp

func (f *Feature) ShortHelp() []key.Binding

ShortHelp returns footer key hints for the install wizard.

func (*Feature) StartFlow

func (f *Feature) StartFlow() (tea.Model, tea.Cmd)

func (*Feature) StartSelected

func (f *Feature) StartSelected(agentIDs []string, scope extension.Scope) (tea.Model, tea.Cmd)

StartSelected begins installing the wizard's selected candidate (exported for tests).

func (*Feature) SyncHint

func (f *Feature) SyncHint()

func (*Feature) Update

func (f *Feature) Update(msg tea.Msg) (tea.Cmd, bool)

func (*Feature) View

func (f *Feature) View(width, height int) string

func (*Feature) WizardOpen

func (f *Feature) WizardOpen() bool

WizardOpen reports whether the install wizard is visible.

func (*Feature) WizardSearching

func (f *Feature) WizardSearching() bool

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
	FlashFooter(string) tea.Cmd
	SetHelpShowAll(bool)
}

Host exposes install-flow needs from the app Model.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL