interactive

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package interactive implements an interactive command-line interface using the Bubble Tea framework.

Index

Constants

This section is empty.

Variables

View Source
var BorderStyle = lipgloss.NewStyle().
	BorderStyle(lipgloss.NormalBorder()).
	Padding(1, 1).
	BorderForeground(lipgloss.Color("240"))
View Source
var ColHeaderStyle = lipgloss.NewStyle().
	Foreground(lipgloss.Color("#ffffff")).
	Background(lipgloss.Color("99"))
View Source
var DocStyle = lipgloss.NewStyle().Margin(1, 2)
View Source
var ErrorTextStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("9"))
View Source
var HeadingStyle = lipgloss.NewStyle().
	Foreground(lipgloss.Color("99")).
	Bold(true).Align(lipgloss.Center)
View Source
View Source
var OuterStyle = lipgloss.NewStyle().Margin(0, 2)
View Source
var PurpleBgStyle = lipgloss.NewStyle().
	Foreground(lipgloss.Color("#ffffff")).
	Background(lipgloss.Color("#5E5ED2"))
View Source
var TableTitleStyle = PurpleBgStyle.
	Padding(0, 1).Margin(0, 2)

Functions

func InitialModel

func InitialModel() *parentModel

func InitialModelWithConfig

func InitialModelWithConfig(container, user, password string) *parentModel

func NewActionModel

func NewActionModel() actionModel

func NewBackupExecModel

func NewBackupExecModel(config ServerConfig, dbName, filename string) backupExecModel

func NewBackupModel

func NewBackupModel(config ServerConfig) backupModel

func NewInspectModel

func NewInspectModel(config ServerConfig, bakFileName string) inspectModel

func NewListFilesModel

func NewListFilesModel(config ServerConfig) listFilesModel

func NewLoginModel

func NewLoginModel(err error) loginModel

func NewRestoreExecModel

func NewRestoreExecModel(config ServerConfig, bakFileInfo BakFileInfo, newDBName string) restoreExecModel

func NewRestoreModel

func NewRestoreModel(config ServerConfig, fileInfo BakFileInfo) restoreModel

func NewWelcomeModel

func NewWelcomeModel() templateModel

func RenderStatusBar

func RenderStatusBar(container string, model tea.Model) string

Types

type BakFileInfo

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

type ServerConfig

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

Jump to

Keyboard shortcuts

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