preflightui

package
v0.2.0 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: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsLocalhostEndpoint

func IsLocalhostEndpoint(endpoint string) bool

IsLocalhostEndpoint returns true if the given endpoint URL refers to the local machine (localhost, 127.0.0.1, or ::1).

func ResolveDeployConfigPath

func ResolveDeployConfigPath(configPath string) string

ResolveDeployConfigPath returns the path to the deploy config file, trying the alternate extension (.json <-> .jsonc) if the original path does not exist.

Types

type PreflightErrorMsg

type PreflightErrorMsg = preflight.ErrorMsg

type PreflightInstalledMsg

type PreflightInstalledMsg = preflight.InstalledMsg

type PreflightModel

type PreflightModel struct {
	Error error
	// contains filtered or unexported fields
}

PreflightModel is a TUI sub-model that checks for missing plugin dependencies and installs them before the main command runs.

func NewPreflightModel

func NewPreflightModel(opts PreflightOptions) *PreflightModel

NewPreflightModel creates a new preflight check sub-model.

func (PreflightModel) Init

func (m PreflightModel) Init() tea.Cmd

func (PreflightModel) Update

func (m PreflightModel) Update(msg tea.Msg) (PreflightModel, tea.Cmd)

func (PreflightModel) View

func (m PreflightModel) View() string

type PreflightOptions

type PreflightOptions struct {
	ConfProvider   *config.Provider
	CommandName    string
	Styles         *stylespkg.Styles
	Headless       bool
	HeadlessWriter io.Writer
	JsonMode       bool
}

PreflightOptions contains options for creating a new preflight model.

type PreflightSatisfiedMsg

type PreflightSatisfiedMsg = preflight.SatisfiedMsg

Type aliases so existing references (tests, validate command) continue to compile while the actual message types come from the SDK's preflight package.

Jump to

Keyboard shortcuts

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