Help us shape the future of Go! Take the 2026 Go Developer Survey

plugin

package
v0.2.39 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecutePlugin

func ExecutePlugin(executable string, args []string) int

ExecutePlugin runs a plugin and returns its exit code

Types

type DiscoveredPlugin

type DiscoveredPlugin struct {
	Manifest   PluginManifest
	Executable string // Full path to executable
}

DiscoveredPlugin pairs a manifest with its executable path

func GetPlugins

func GetPlugins() ([]DiscoveredPlugin, error)

GetPlugins returns discovered plugins, discovering lazily on first call TODO: Consider file-based caching with TTL to avoid manifest fetching on every CLI invocation

type PluginManifest

type PluginManifest struct {
	Name        string `json:"name"`
	Version     string `json:"version"`
	Description string `json:"description"`
}

PluginManifest represents the JSON manifest returned by plugins TODO: Consider adding Aliases field for command aliases (e.g., "d" for "deploy") TODO: Consider adding MinCLIVersion field for compatibility checking

type PluginRegistry

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

PluginRegistry holds discovered plugins with lazy initialization

Jump to

Keyboard shortcuts

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