Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsLocalhostEndpoint ¶
IsLocalhostEndpoint returns true if the given endpoint URL refers to the local machine (localhost, 127.0.0.1, or ::1).
func ResolveDeployConfigPath ¶
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 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.