models

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigModel

type ConfigModel struct {
	Step ConfigStep
	// contains filtered or unexported fields
}

ConfigModel handles the project configuration flow

func NewConfigModel

func NewConfigModel() *ConfigModel

NewConfigModel creates a new configuration model

func (*ConfigModel) GetArchitectureChoice

func (m *ConfigModel) GetArchitectureChoice() config.ArchitectureChoice

func (*ConfigModel) GetDatabaseChoice

func (m *ConfigModel) GetDatabaseChoice() config.DatabaseChoice

func (*ConfigModel) GetDescription

func (m *ConfigModel) GetDescription() string

func (*ConfigModel) GetDevOpsConfig

func (m *ConfigModel) GetDevOpsConfig() config.DevOpsConfig

func (*ConfigModel) GetDevOpsEnabled

func (m *ConfigModel) GetDevOpsEnabled() bool

func (*ConfigModel) GetFrameworkChoice

func (m *ConfigModel) GetFrameworkChoice() config.FrameworkChoice

func (*ConfigModel) GetModulePath

func (m *ConfigModel) GetModulePath() string

func (*ConfigModel) GetOutputDir

func (m *ConfigModel) GetOutputDir() string

func (*ConfigModel) GetProjectName

func (m *ConfigModel) GetProjectName() string

func (*ConfigModel) GetToolChoice

func (m *ConfigModel) GetToolChoice() config.ToolChoice

func (*ConfigModel) Init

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

Init initializes the configuration model

func (*ConfigModel) IsCancelled

func (m *ConfigModel) IsCancelled() bool

func (*ConfigModel) IsConfirmed

func (m *ConfigModel) IsConfirmed() bool

func (*ConfigModel) IsStepComplete

func (m *ConfigModel) IsStepComplete(step ConfigStep) bool

func (*ConfigModel) SetStep

func (m *ConfigModel) SetStep(step ConfigStep)

func (*ConfigModel) Update

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

Update handles incoming messages

func (*ConfigModel) View

func (m *ConfigModel) View() string

View renders the current configuration step

type ConfigStep

type ConfigStep int

ConfigStep represents the current step in configuration

const (
	StepFramework ConfigStep = iota
	StepDatabase
	StepTool
	StepArchitecture
	StepDevOpsOptions
	StepDevOpsTools
	StepProjectDetails
	StepReview
)
type MenuModel struct {
	// contains filtered or unexported fields
}

func NewMenuModel

func NewMenuModel() *MenuModel
func (m *MenuModel) Init() tea.Cmd
func (m *MenuModel) ResetSelected()
func (m *MenuModel) Selected() string
func (m *MenuModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)
func (m *MenuModel) View() string

type ProgressModel

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

ProgressModel handles project generation progress

func NewProgressModel

func NewProgressModel() *ProgressModel

NewProgressModel creates a new progress model

func (*ProgressModel) GetError

func (m *ProgressModel) GetError() error

func (*ProgressModel) Init

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

Init initializes the progress model

func (*ProgressModel) IsFinished

func (m *ProgressModel) IsFinished() bool

Getter methods for state checking

func (*ProgressModel) IsSuccess

func (m *ProgressModel) IsSuccess() bool

func (*ProgressModel) StartGeneration

func (m *ProgressModel) StartGeneration(config *config.ProjectConfig) tea.Cmd

StartGeneration starts the project generation process

func (*ProgressModel) Update

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

Update handles messages for the progress model

func (*ProgressModel) View

func (m *ProgressModel) View() string

View renders the progress screen

type SplashModel

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

func NewSplashModel

func NewSplashModel() *SplashModel

func (*SplashModel) Finished

func (m *SplashModel) Finished() bool

func (*SplashModel) Init

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

func (*SplashModel) Update

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

func (*SplashModel) View

func (m *SplashModel) View() string

type TickMsg

type TickMsg time.Time

type VersionModel

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

func NewVersionModel

func NewVersionModel() *VersionModel

func (*VersionModel) Init

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

func (*VersionModel) Reset

func (m *VersionModel) Reset()

func (*VersionModel) ShouldClose

func (m *VersionModel) ShouldClose() bool

func (*VersionModel) Update

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

func (*VersionModel) View

func (m *VersionModel) View() string

Jump to

Keyboard shortcuts

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