tui

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunWithProgress

func RunWithProgress(title string, action func(chan<- float64) error) error

RunWithProgress runs an action and updates a progress bar

func RunWithSpinner

func RunWithSpinner(title string, action func(func(string)) error) error

RunWithSpinner runs an action with a spinner

Types

type Model

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

func NewModel

func NewModel(templateName, targetTpl string, vars []config.Variable) 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 TUIResult

type TUIResult struct {
	TargetDir string
	Variables map[string]string
}

func RunTUI

func RunTUI(templateName, targetTpl string, vars []config.Variable) (*TUIResult, error)

RunTUI runs the TUI and returns the collected data

Jump to

Keyboard shortcuts

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