{"modulePath":"github.com/newstack-cloud/deploy-cli-sdk","version":"v0.10.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package preflight\n\nPackage 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.\n\n## Functions\n\n```go\nfunc RenderInstallSummary(\n\ts *styles.Styles,\n\tplugins []string,\n\tinstalledCount int,\n\trestartInstructions string,\n\tcommandName string,\n) string\n```\nRenderInstallSummary 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.\n\n## Types\n\n```go\ntype ErrorMsg struct {\n\tErr error\n}\n```\nErrorMsg indicates the preflight check failed.\n\n```go\ntype InstalledMsg struct {\n\tCommandName         string\n\tRestartInstructions string\n\tInstalledPlugins    []string\n\tInstalledCount      int\n}\n```\nInstalledMsg indicates dependencies were installed and the engine needs a restart before continuing.\n\n```go\ntype SatisfiedMsg struct{}\n```\nSatisfiedMsg indicates all preflight checks passed (or were skipped).\n\n","path":"github.com/newstack-cloud/deploy-cli-sdk/tui/preflight","name":"preflight","synopsis":"Package preflight provides shared types for preflight check TUI integration.","isRedistributable":true}
