plugininstallui

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2026 License: Apache-2.0 Imports: 11 Imported by: 0 modules, 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 InstallAllPluginsCmd

type InstallAllPluginsCmd struct {
	Results []*plugins.InstallResult
}

InstallAllPluginsCmd starts installation of all plugins.

type InstallAppOptions

type InstallAppOptions struct {
	PluginIDs        []*plugins.PluginID
	UserRequestedIDs []*plugins.PluginID
	Styles           *stylespkg.Styles
	Headless         bool
	HeadlessWriter   io.Writer
	Manager          *plugins.Manager
}

InstallAppOptions contains options for creating a new install app.

type InstallCompleteMsg

type InstallCompleteMsg struct {
	InstalledCount int
	SkippedCount   int
	FailedCount    int
	Error          error
}

InstallCompleteMsg is sent when all plugins have been processed in embedded mode. The parent model should handle this to proceed.

type MainModel

type MainModel struct {
	Error error
	// contains filtered or unexported fields
}

MainModel is the main model for the plugin install TUI.

func NewInstallApp

func NewInstallApp(ctx context.Context, opts InstallAppOptions) (*MainModel, error)

NewInstallApp creates a new plugin install TUI application.

func (MainModel) Init

func (m MainModel) Init() tea.Cmd

func (*MainModel) SetEmbeddedMode

func (m *MainModel) SetEmbeddedMode(embedded bool)

SetEmbeddedMode configures the install model to run as a sub-model. When embedded: does not auto-quit, sends InstallCompleteMsg instead.

func (MainModel) Update

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

func (MainModel) View

func (m MainModel) View() string

type PluginCompleteMsg

type PluginCompleteMsg struct {
	Index  int
	Result *plugins.InstallResult
}

PluginCompleteMsg signals completion of a plugin installation.

type PluginErrorMsg

type PluginErrorMsg struct {
	Index int
	Error error
}

PluginErrorMsg signals an error during plugin installation.

type PluginInstallState

type PluginInstallState struct {
	PluginID        *plugins.PluginID
	Status          PluginStatus
	StatusText      string
	DownloadedBytes int64
	TotalBytes      int64
	Error           error
	IsDependency    bool
}

PluginInstallState tracks the state of a single plugin installation.

type PluginProgressMsg

type PluginProgressMsg struct {
	Index      int
	Status     PluginStatus
	StatusText string
	Downloaded int64
	Total      int64
}

PluginProgressMsg reports progress during plugin installation.

type PluginStatus

type PluginStatus int

PluginStatus represents the current status of a plugin installation.

const (
	PluginPending PluginStatus = iota
	PluginResolving
	PluginDownloading
	PluginVerifying
	PluginExtracting
	PluginComplete
	PluginSkipped
	PluginFailed
)

Jump to

Keyboard shortcuts

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