pluginuninstallui

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: 8 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 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