repl

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

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

Model represents the UI state for the REPL

func NewModel

func NewModel(startMultiline bool) Model

NewModel creates a new UI model

func NewModelWithSettings

func NewModelWithSettings(startMultiline bool, stepSettings *settings.StepSettings) Model

NewModelWithSettings creates a new UI model with Geppetto step settings

func (Model) Init

func (m Model) Init() tea.Cmd

Init initializes the UI model

func (Model) Update

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

Update handles UI events and updates the model

func (Model) View

func (m Model) View() string

View renders the UI

type SharedState

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

SharedState contains mutable state that needs to be shared

type Styles

type Styles struct {
	Title    lipgloss.Style
	Prompt   lipgloss.Style
	Result   lipgloss.Style
	Error    lipgloss.Style
	Info     lipgloss.Style
	HelpText lipgloss.Style
}

Styles defines the visual styling for the REPL

func DefaultStyles

func DefaultStyles() Styles

DefaultStyles returns the default styling configuration

Jump to

Keyboard shortcuts

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