Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(opts RunOptions) error
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func New ¶
func New(opts RunOptions) Model
type RunOptions ¶
type RunOptions struct {
Plan *catalogsync.Plan
ApplyFn func(*catalogsync.Plan) error
SourceInfo string
}
type WizardModel ¶
type WizardModel struct {
// contains filtered or unexported fields
}
WizardModel holds the state for the interactive config wizard.
func NewWizard ¶
func NewWizard() WizardModel
func (WizardModel) Init ¶
func (m WizardModel) Init() tea.Cmd
func (WizardModel) View ¶
func (m WizardModel) View() string
type WizardResult ¶
type WizardResult struct {
Content string // generated config content
Filename string // suggested filename (e.g. "rootly-catalog-sync.yaml")
}
WizardResult is returned by RunWizard.
func RunWizard ¶
func RunWizard() (*WizardResult, error)
RunWizard runs the wizard and returns the result.
Click to show internal directories.
Click to hide internal directories.