plugin

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Author

type Author struct {
	Name    string `json:"name"`
	Email   string `json:"email"`
	URL     string `json:"url"`
	Company string `json:"company"`
}

Author represents plugin author information

type Plugin

type Plugin struct {
	Name           string   `json:"name"`
	Description    string   `json:"description"`
	Version        string   `json:"version"`
	Keywords       []string `json:"keywords"`
	Category       string   `json:"category"`
	Author         Author   `json:"author"`
	Marketplace    string   `json:"-"`      // The marketplace this plugin belongs to
	Installed      bool     `json:"-"`      // Whether this plugin is currently installed
	IsDiscoverable bool     `json:"-"`      // Whether from a discoverable (not installed) marketplace
	InstallPath    string   `json:"-"`      // Path if installed
	Source         string   `json:"source"` // Source path within marketplace
	Homepage       string   `json:"homepage"`
	Repository     string   `json:"repository"` // Source repository URL
	License        string   `json:"license"`    // License identifier (e.g., "MIT")
	Tags           []string `json:"tags"`       // Categorization tags
}

Plugin represents a Claude Code plugin from any marketplace

func (Plugin) AuthorName

func (p Plugin) AuthorName() string

AuthorName returns the author's name or "Unknown" if not set

func (Plugin) FilterValue

func (p Plugin) FilterValue() string

FilterValue implements the list.Item interface for bubbles/list

func (Plugin) FullName

func (p Plugin) FullName() string

FullName returns the plugin identifier in format "name@marketplace"

func (Plugin) InstallCommand

func (p Plugin) InstallCommand() string

InstallCommand returns the command to install this plugin

func (Plugin) Title

func (p Plugin) Title() string

Title implements the list.DefaultItem interface

Jump to

Keyboard shortcuts

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