Documentation
¶
Overview ¶
Package preflight provides shared types for preflight check TUI integration. The actual preflight check implementation (e.g. plugin dependency verification) lives in the consuming CLI, but the message types and rendering utilities are shared so that deployment TUI models can handle preflight results without importing CLI-specific packages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderInstallSummary ¶
func RenderInstallSummary( s *styles.Styles, plugins []string, installedCount int, restartInstructions string, commandName string, ) string
RenderInstallSummary renders the plugin installation summary for use in both the preflight complete view and parent TUI quitting views. The signature matches the original bluelink preflightui.RenderInstallSummary for compatibility.
Types ¶
type InstalledMsg ¶
type InstalledMsg struct {
CommandName string
RestartInstructions string
InstalledPlugins []string
InstalledCount int
}
InstalledMsg indicates dependencies were installed and the engine needs a restart before continuing.
type SatisfiedMsg ¶
type SatisfiedMsg struct{}
SatisfiedMsg indicates all preflight checks passed (or were skipped).