Documentation
¶
Index ¶
- type AnalysisCompleteMsg
- type AnalysisStats
- type BaseView
- type ConfigSavedMsg
- type DependencyInfo
- type ErrorMsg
- type KeyCapturer
- type LifecyclePattern
- type LoadedMsg
- type LoadingMsg
- type NavigateMsg
- type SquashCompleteMsg
- type SquashStats
- type SuccessMsg
- type ValidationResultMsg
- type View
- type ViewType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnalysisCompleteMsg ¶
type AnalysisCompleteMsg struct {
Stats *AnalysisStats
}
AnalysisCompleteMsg sent when analysis completes
type AnalysisStats ¶
type AnalysisStats struct {
TotalMigrations int
ObjectsCreated int
TablesCreated int
FunctionsCreated int
IndexesCreated int
PotentialSavings float64
FileReduction int
LifecyclePatterns []LifecyclePattern
Dependencies []DependencyInfo
Warnings []string
Errors []string
}
AnalysisStats contains analysis results
type ConfigSavedMsg ¶
type ConfigSavedMsg struct {
Path string
}
ConfigSavedMsg sent when configuration is saved
type DependencyInfo ¶
DependencyInfo represents a dependency relationship
type KeyCapturer ¶ added in v1.2.0
type KeyCapturer interface {
CapturesKeys() bool
}
KeyCapturer is implemented by views that sometimes take all key input, such as the configuration wizard while a field is being edited. While CapturesKeys reports true, the model hands every key except ctrl+c to the view before any global binding (q, ?, v, esc) is considered.
type LifecyclePattern ¶
type LifecyclePattern struct {
ObjectName string
ObjectType string
Operations []string
Optimizable bool
Warning string
}
LifecyclePattern represents an object's lifecycle
type SquashCompleteMsg ¶
type SquashCompleteMsg struct {
OutputPath string
Stats *SquashStats
}
SquashCompleteMsg sent when squashing completes
type SquashStats ¶
type SquashStats struct {
OriginalFiles int
SquashedFiles int
BytesSaved int64
ObjectsOptimized int
Duration float64
}
SquashStats contains squashing operation statistics
type ValidationResultMsg ¶
type ValidationResultMsg struct {
Result any // untyped to avoid a dependency on internal/validation
Success bool
Errors []string
Warnings []string
}
ValidationResultMsg contains validation results
type View ¶
type View interface {
// Update handles messages and updates view state
Update(msg tea.Msg) (View, tea.Cmd)
// View renders the view
View() string
// Type returns the view type
Type() ViewType
// SetSize sets the view dimensions
SetSize(width, height int)
// OnEnter is called when the view becomes active, including the view
// the program starts on.
OnEnter() tea.Cmd
// OnExit is called when leaving the view
OnExit() tea.Cmd
}
View interface that all views must implement