tui

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppState

type AppState int

AppState represents the current state of the application

const (
	StateSplash AppState = iota
	StateMainMenu
	StateFrameworkSelection
	StateDatabaseSelection
	StateToolSelection
	StateArchitectureSelection
	StateDevOpsOptions
	StateDevOpsToolsSelection
	StateProjectDetails
	StateConfigReview
	StateGeneration
	StateProgress
	StateSuccess
	StateError
	StateVersion
)

type ConfigStep

type ConfigStep int

ConfigStep represents the current step in the configuration process

const (
	StepFramework ConfigStep = iota
	StepDatabase
	StepTool
	StepArchitecture
	StepDevOpsOptions
	StepDevOpsTools
	StepProjectDetails
	StepReview
)

type MainModel

type MainModel struct {
	State      AppState
	WindowSize tea.WindowSizeMsg

	// Sub-models
	SplashModel   *models.SplashModel
	MenuModel     *models.MenuModel
	VersionModel  *models.VersionModel
	ConfigModel   *models.ConfigModel
	ProgressModel *models.ProgressModel

	// Shared state
	Config *config.ProjectConfig
	Error  error
}

MainModel is the main model for the Bubble Tea application

func NewMainModel

func NewMainModel() *MainModel

NewMainModel creates a new MainModel

func (*MainModel) Init

func (m *MainModel) Init() tea.Cmd

Init initializes the main model

func (*MainModel) Update

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

Update handles incoming messages and updates the model

func (*MainModel) View

func (m *MainModel) View() string

View renders the current view of the main model

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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