generate_progress

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DoneMsg

type DoneMsg int

type ErrorMsg

type ErrorMsg error

type GenerationProgressMsg

type GenerationProgressMsg int

type ModDiscoveredMsg

type ModDiscoveredMsg *nexus.SchemaMod

type Model

type Model struct {
	GameCode string
	ModId    string
	Theme    *huh.Theme
	// contains filtered or unexported fields
}

func New

func New(gameCode string, modId string, theme ...*huh.Theme) Model

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) SetStatus

func (m Model) SetStatus(status Status) Model

func (Model) Update

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

func (Model) View

func (m Model) View() string

type StartMsg

type StartMsg int

type Status

type Status int
const (
	StatusQueued Status = iota
	StatusStarted
	StatusModDiscovered
	StatusGeneratingMarkdown
	StatusDone
	StatusError
)

Jump to

Keyboard shortcuts

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