ui

package
v0.0.0-...-39e1527 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfirmPrompt

func ConfirmPrompt(message string, defaultYes bool) bool

ConfirmPrompt asks for user confirmation (yes/no) with default behavior

func Prompt

func Prompt(message string, defaultValue string) string

Prompt asks the user for input with an optional default value

func RunQuickUI

func RunQuickUI()

RunQuickUI launches the interactive project creation UI

func ShowBootstrapInstructions

func ShowBootstrapInstructions(projectName string)

ShowBootstrapInstructions displays post-creation guidance to the user

Types

type Model

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

Model holds the Bubble Tea UI state

func (Model) Init

func (m Model) Init() tea.Cmd

Init is required by Bubble Tea

func (Model) Update

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

Update reacts to user input and internal messages

func (Model) View

func (m Model) View() string

View handles the rendering of the UI based on the current step

type ProjectCreatedMsg

type ProjectCreatedMsg struct {
	Success bool
	Error   error
}

Message sent after project creation finishes

type Spinner

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

Spinner represents an animated CLI progress indicator

func NewSpinner

func NewSpinner(message string) *Spinner

NewSpinner returns a new Spinner with a given message

func (*Spinner) Start

func (s *Spinner) Start()

Start begins the spinner animation in a separate goroutine

func (*Spinner) Stop

func (s *Spinner) Stop()

Stop ends the spinner animation and prints a "done" message

Jump to

Keyboard shortcuts

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