Documentation
¶
Overview ¶
Package onboard implements the lango onboard command — a guided 5-step wizard.
Index ¶
- Variables
- func NewAgentStepForm(cfg *config.Config) *tuicore.FormModel
- func NewChannelStepForm(channel string, cfg *config.Config) *tuicore.FormModel
- func NewCommand() *cobra.Command
- func NewProviderStepForm(cfg *config.Config) *tuicore.FormModel
- func NewSecurityStepForm(cfg *config.Config) *tuicore.FormModel
- type StepDef
- type TestResult
- type Wizard
- type WizardStep
Constants ¶
This section is empty.
Variables ¶
View Source
var WizardSteps = []StepDef{
{Name: "Provider Setup"},
{Name: "Agent Config"},
{Name: "Channel Setup"},
{Name: "Security & Auth"},
{Name: "Test Configuration"},
}
WizardSteps is the ordered list of wizard step definitions.
Functions ¶
func NewAgentStepForm ¶
NewAgentStepForm creates the Step 2 form: Agent Config.
func NewChannelStepForm ¶
NewChannelStepForm creates the Step 3 form for the given channel type.
func NewProviderStepForm ¶
NewProviderStepForm creates the Step 1 form: Provider Setup.
Types ¶
type StepDef ¶
type StepDef struct {
Name string
}
StepDef describes a wizard step for display purposes.
type TestResult ¶
TestResult represents a single configuration validation result.
func RunConfigTests ¶
func RunConfigTests(cfg *config.Config) []TestResult
RunConfigTests validates the configuration and returns test results.
type Wizard ¶
type Wizard struct {
// Public status
Completed bool
Cancelled bool
// contains filtered or unexported fields
}
Wizard is the main bubbletea model for the 5-step onboard wizard.
type WizardStep ¶
type WizardStep int
WizardStep represents the current step in the wizard.
const ( StepProvider WizardStep = iota // Step 1 StepAgent // Step 2 StepChannel // Step 3 StepSecurity // Step 4 StepTest // Step 5 StepComplete )
Click to show internal directories.
Click to hide internal directories.