tui

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2026 License: MIT Imports: 7 Imported by: 0

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

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

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

func (Model) View

func (m Model) View() string

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) Update

func (m WizardModel) Update(msg tea.Msg) (tea.Model, 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.

Jump to

Keyboard shortcuts

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