initialize

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSelectedIntegrations

func GetSelectedIntegrations(wizardSteps []steps.Step) []string

GetSelectedIntegrations returns the integrations selected in the wizard Call this after RunWizard to get the list of integrations to setup

Types

type WizardModel

type WizardModel struct {
	// contains filtered or unexported fields
}

WizardModel is the main Bubbletea model for the initialization wizard

func NewWizard

func NewWizard(cfg *config.Config) *WizardModel

NewWizard creates a new initialization wizard

func (WizardModel) Init

func (m WizardModel) Init() tea.Cmd

Init implements tea.Model

func (WizardModel) Update

func (m WizardModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update implements tea.Model

func (WizardModel) View

func (m WizardModel) View() string

View implements tea.Model

type WizardResult

type WizardResult struct {
	Config               *config.Config
	Confirmed            bool
	Cancelled            bool
	Err                  error
	StartupStep          *steps.StartupStep // Startup configuration choices
	SelectedIntegrations []string           // Selected integrations from wizard
}

WizardResult contains the outcome of the wizard

func RunWizard

func RunWizard(initialConfig *config.Config) (*WizardResult, error)

RunWizard runs the interactive initialization wizard Returns the completed config and whether the user confirmed

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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