pluginuninstallui

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MainModel

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

MainModel is the main model for the plugin uninstall TUI.

func NewUninstallApp

func NewUninstallApp(opts UninstallAppOptions) (*MainModel, error)

NewUninstallApp creates a new plugin uninstall TUI 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 PluginCompleteMsg

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

PluginCompleteMsg is sent when a plugin uninstallation completes.

type PluginErrorMsg

type PluginErrorMsg struct {
	Index int
	Error error
}

PluginErrorMsg is sent when a plugin uninstallation encounters an error.

type PluginStatus

type PluginStatus int

PluginStatus represents the current status of a plugin uninstallation.

const (
	PluginPending PluginStatus = iota
	PluginRemoving
	PluginRemoved
	PluginNotFound
	PluginFailed
)

type PluginUninstallState

type PluginUninstallState struct {
	PluginID   *plugins.PluginID
	Status     PluginStatus
	StatusText string
	Error      error
}

PluginUninstallState tracks the state of a single plugin uninstallation.

type UninstallAppOptions

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

UninstallAppOptions contains options for creating a new uninstall app.

Jump to

Keyboard shortcuts

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