Documentation
¶
Index ¶
- type ExportCompleteMsg
- type ExportModel
- func (m *ExportModel) Init() tea.Cmd
- func (m *ExportModel) IsFinished() bool
- func (m *ExportModel) SetFilePath(filePath string)
- func (m *ExportModel) SetWidth(width int)
- func (m *ExportModel) StartExport() tea.Cmd
- func (m *ExportModel) Update(msg tea.Msg) (*ExportModel, tea.Cmd)
- func (m *ExportModel) View() string
- type ExportModelConfig
- type ExportStartedMsg
- type MainModel
- type StateExportAppConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExportCompleteMsg ¶
type ExportCompleteMsg struct {
Result *stateio.ExportResult
Err error
}
ExportCompleteMsg indicates that exporting has completed.
type ExportModel ¶
type ExportModel struct {
// contains filtered or unexported fields
}
ExportModel handles the export progress display.
func NewExportModel ¶
func NewExportModel(config ExportModelConfig) *ExportModel
NewExportModel creates a new export model.
func (*ExportModel) Init ¶
func (m *ExportModel) Init() tea.Cmd
func (*ExportModel) IsFinished ¶
func (m *ExportModel) IsFinished() bool
IsFinished returns whether the export has finished.
func (*ExportModel) SetFilePath ¶
func (m *ExportModel) SetFilePath(filePath string)
SetFilePath sets the file path for the export.
func (*ExportModel) SetWidth ¶
func (m *ExportModel) SetWidth(width int)
SetWidth sets the terminal width for the export model.
func (*ExportModel) StartExport ¶
func (m *ExportModel) StartExport() tea.Cmd
StartExport returns a command to start the export process.
func (*ExportModel) Update ¶
func (m *ExportModel) Update(msg tea.Msg) (*ExportModel, tea.Cmd)
func (*ExportModel) View ¶
func (m *ExportModel) View() string
type ExportModelConfig ¶
type ExportModelConfig struct {
EngineConfig *stateio.EngineConfig
FilePath string
InstanceFilters []string
Styles *stylespkg.Styles
Headless bool
HeadlessWriter io.Writer
JSONMode bool
}
ExportModelConfig holds configuration for the export model.
type ExportStartedMsg ¶
type ExportStartedMsg struct{}
ExportStartedMsg indicates that exporting has started.
type MainModel ¶
type MainModel struct {
Error error
// contains filtered or unexported fields
}
MainModel is the top-level model for the state export command TUI.
func NewStateExportApp ¶
func NewStateExportApp(config StateExportAppConfig) (*MainModel, error)
NewStateExportApp creates a new state export application.
Click to show internal directories.
Click to hide internal directories.