preflight

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

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 ErrorMsg

type ErrorMsg struct {
	Err error
}

ErrorMsg indicates the preflight check failed.

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).

Jump to

Keyboard shortcuts

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