stateexportui

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

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.

func (MainModel) Init

func (m MainModel) Init() tea.Cmd

func (MainModel) Update

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

func (MainModel) View

func (m MainModel) View() string

type StateExportAppConfig

type StateExportAppConfig struct {
	FilePath        string
	InstanceFilters []string
	EngineConfig    *stateio.EngineConfig
	Styles          *stylespkg.Styles
	Headless        bool
	HeadlessWriter  io.Writer
	JSONMode        bool
}

StateExportAppConfig holds configuration for creating a new state export app.

Jump to

Keyboard shortcuts

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