tui

package
v0.18.2 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: LGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogCmd

func NewLogCmd(log string) tea.Cmd

NewLogCmd returns a command that emits a log message.

Types

type CloneFinishedMsg

type CloneFinishedMsg struct {
	Err error
}

CloneFinishedMsg signals that the async clone operation has completed.

type NewLogMsg

type NewLogMsg struct {
	Log string
}

NewLogMsg signals a new log line to display.

type TemplateSelectionCompleteMsg

type TemplateSelectionCompleteMsg struct {
	SelectedTemplate *worldscaffold.GameTemplate
}

TemplateSelectionCompleteMsg indicates template selection is complete.

type TidyFinishedMsg

type TidyFinishedMsg struct {
	Err     error
	Removed bool
}

TidyFinishedMsg signals that the async tidy operation has completed.

type WorldDoctorModel

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

func NewWorldDoctorModel

func NewWorldDoctorModel() WorldDoctorModel

func (WorldDoctorModel) Init

func (m WorldDoctorModel) Init() tea.Cmd

Init returns an initial command for the application to run.

func (WorldDoctorModel) Update

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

Update handles incoming events and updates the model accordingly.

func (WorldDoctorModel) View

func (m WorldDoctorModel) View() string

View renders the model to the screen.

type WorldSetupModel

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

WorldSetupModel is the Bubble Tea model for the setup wizard.

func NewWorldSetupModel

func NewWorldSetupModel(directory, env, templateFlag string) WorldSetupModel

NewWorldSetupModel creates a new setup model.

func (WorldSetupModel) Init

func (m WorldSetupModel) Init() tea.Cmd

Init returns an initial command for the application to run.

func (WorldSetupModel) Update

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

Update handles incoming events and updates the model accordingly.

func (WorldSetupModel) View

func (m WorldSetupModel) View() string

View renders the UI based on the data in the WorldSetupModel.

Jump to

Keyboard shortcuts

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