stateexportui

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: Apache-2.0 Imports: 13 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
	FileEncryption  *stateio.StateEncryptionKeyConfig
}

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
	// FileEncryption is the key the output file is encrypted with, if any.
	FileEncryption *stateio.StateEncryptionKeyConfig
}

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