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

pluginscmd

package
v0.33.12 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package pluginscmd implements the `d8 dist plugins` command tree and the per-plugin wrapper command on top of the internal/plugins machinery.

d8 dist plugins list       list installed plugins
d8 dist plugins versions   list published versions of a plugin
d8 dist plugins contract   show a plugin's contract
d8 dist plugins install    install a plugin
d8 dist plugins update     update installed plugins
d8 dist plugins remove     remove an installed plugin

The subtree is mounted under `d8 dist` (internal/dist/cmd) and inherits the cluster access flags (kubeconfig/context, rpp-*) from it. File layout: one command per file, plugin.go holds the per-plugin wrapper (e.g. `d8 system`).

Index

Constants

View Source
const (
	SystemPluginName = "system"
	// PackagePluginName names the capability, not a wrapper command: `d8 package`
	// is always built in (cmd/d8/root.go). It is passed to SetBuiltinCommands so a
	// plugin depending on "package" is satisfied without a registry lookup.
	// TODO(Glitchy-Sheep): swap the built-in for NewPluginCommand during full plugin system implementation.
	PackagePluginName = "package"
)

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(logger *dkplog.Logger, builtinCommands []string) *cobra.Command

NewCommand returns the `d8 dist plugins` command tree for managing plugins. builtinCommands are built-in command names that satisfy a plugin dependency of the same name (e.g. delivery-kit) until such capabilities ship as standalone plugins.

func NewPluginCommand

func NewPluginCommand(commandName, description string, aliases []string, logger *dkplog.Logger) *cobra.Command

NewPluginCommand returns the wrapper command that runs an installed plugin (e.g. `d8 system`), installing it first when missing. TODO: add options pattern

Types

This section is empty.

Directories

Path Synopsis
Package errdetect maps registry-packages-proxy failures from `d8 dist plugins` to HelpfulErrors with plugin-specific guidance.
Package errdetect maps registry-packages-proxy failures from `d8 dist plugins` to HelpfulErrors with plugin-specific guidance.

Jump to

Keyboard shortcuts

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