tui

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsFirstTimeUser

func IsFirstTimeUser() bool

IsFirstTimeUser checks if any API key is configured

func Run

func Run() error

Run starts the TUI application

Types

type APIKeySetupModel

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

func NewAPIKeySetupModel

func NewAPIKeySetupModel() APIKeySetupModel

func (APIKeySetupModel) Init

func (m APIKeySetupModel) Init() tea.Cmd

func (APIKeySetupModel) Update

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

func (APIKeySetupModel) View

func (m APIKeySetupModel) View() string

type AnalyzeCompleteMsg

type AnalyzeCompleteMsg struct {
	Result interface{}
	Err    error
}

type AnalyzeConfigModel

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

func NewAnalyzeConfigModel

func NewAnalyzeConfigModel() AnalyzeConfigModel

func (AnalyzeConfigModel) Init

func (m AnalyzeConfigModel) Init() tea.Cmd

func (AnalyzeConfigModel) Update

func (AnalyzeConfigModel) View

func (m AnalyzeConfigModel) View() string

type AppModel

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

func NewAppModel

func NewAppModel() AppModel

func (AppModel) Init

func (m AppModel) Init() tea.Cmd

func (AppModel) Update

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

func (AppModel) View

func (m AppModel) View() string

type GenerateCompleteMsg

type GenerateCompleteMsg struct {
	Results interface{}
	Err     error
}

type GenerateConfigModel

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

func NewGenerateConfigModel

func NewGenerateConfigModel() GenerateConfigModel

func (GenerateConfigModel) Init

func (m GenerateConfigModel) Init() tea.Cmd

func (GenerateConfigModel) Update

func (GenerateConfigModel) View

func (m GenerateConfigModel) View() string

type HomeModel

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

func NewHomeModel

func NewHomeModel() HomeModel

func (HomeModel) Init

func (m HomeModel) Init() tea.Cmd

func (HomeModel) Update

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

func (HomeModel) View

func (m HomeModel) View() string
type NavigateMsg struct {
	To     Screen
	Config *RunConfig
}

Messages for navigation and async operations

type OnboardingModel

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

func NewOnboardingModel

func NewOnboardingModel() OnboardingModel

func (OnboardingModel) Init

func (m OnboardingModel) Init() tea.Cmd

func (OnboardingModel) Update

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

func (OnboardingModel) View

func (m OnboardingModel) View() string

type OnboardingStep

type OnboardingStep int

Onboarding step

const (
	StepWelcome OnboardingStep = iota
	StepSelectProvider
	StepEnterKey
	StepComplete
)

type PreviewModel

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

func NewPreviewModel

func NewPreviewModel() PreviewModel

func (PreviewModel) Init

func (m PreviewModel) Init() tea.Cmd

func (PreviewModel) SetConfig

func (m PreviewModel) SetConfig(config RunConfig) PreviewModel

func (PreviewModel) Update

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

func (PreviewModel) View

func (m PreviewModel) View() string

type ResultsModel

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

func NewResultsModel

func NewResultsModel() ResultsModel

func (ResultsModel) Init

func (m ResultsModel) Init() tea.Cmd

func (ResultsModel) SetAnalysis

func (m ResultsModel) SetAnalysis(result interface{}, err error) ResultsModel

func (ResultsModel) SetResults

func (m ResultsModel) SetResults(results interface{}, err error) ResultsModel

func (ResultsModel) Update

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

func (ResultsModel) View

func (m ResultsModel) View() string

type RunConfig

type RunConfig struct {
	Mode      string // "generate" or "analyze"
	Path      string
	File      string
	Recursive bool
	Types     []string
	DryRun    bool
	Validate  bool
	Parallel  int
	CostEst   bool
	Detail    string
}

type RunningModel

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

func NewRunningModel

func NewRunningModel() RunningModel

func (RunningModel) Init

func (m RunningModel) Init() tea.Cmd

func (RunningModel) SetConfig

func (m RunningModel) SetConfig(config RunConfig) RunningModel

func (RunningModel) Update

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

func (RunningModel) View

func (m RunningModel) View() string

type Screen

type Screen int
const (
	ScreenOnboarding Screen = iota
	ScreenHome
	ScreenAPIKeySetup
	ScreenGenerateConfig
	ScreenAnalyzeConfig
	ScreenPreview
	ScreenRunning
	ScreenResults
)

Jump to

Keyboard shortcuts

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