tui

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunInstaller

func RunInstaller(input io.Reader, output io.Writer, skills []skill.Metadata, sets []source.SkillSet, installed map[string]bool) ([]string, error)

Types

type InstallerModel

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

InstallerModel is the Bubble Tea model for the multi-select installer.

func NewInstallerModel

func NewInstallerModel(skills []skill.Metadata, sets []source.SkillSet, installed map[string]bool) InstallerModel

func NewInstallerModelWithUpdates

func NewInstallerModelWithUpdates(skills []skill.Metadata, sets []source.SkillSet, installed, updates map[string]bool) InstallerModel

func (InstallerModel) Cancelled

func (m InstallerModel) Cancelled() bool

func (InstallerModel) Init

func (m InstallerModel) Init() tea.Cmd

func (InstallerModel) Selected

func (m InstallerModel) Selected() []string

func (InstallerModel) SelectedRemovals

func (m InstallerModel) SelectedRemovals() []string

func (InstallerModel) SelectedUpdates

func (m InstallerModel) SelectedUpdates() []string

func (InstallerModel) Update

func (m InstallerModel) Update(message tea.Msg) (tea.Model, tea.Cmd)

func (InstallerModel) View

func (m InstallerModel) View() string

type InstallerSelection

type InstallerSelection struct {
	Installs []string
	Updates  []string
	Removals []string
}

InstallerSelection contains the installs, updates, and removals selected in the TUI.

func RunInstallerWithUpdates

func RunInstallerWithUpdates(input io.Reader, output io.Writer, skills []skill.Metadata, sets []source.SkillSet, installed, updates map[string]bool) (InstallerSelection, error)

Jump to

Keyboard shortcuts

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