pluginscmd

package
v0.32.3 Latest Latest
Warning

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

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

Documentation

Overview

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

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 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 plugins` to HelpfulErrors with plugin-specific guidance.
Package errdetect maps registry-packages-proxy failures from `d8 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