plugins

package
v0.26.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	SystemPluginName  = "system"
	PackagePluginName = "package"
)

Variables

This section is empty.

Functions

func NewCommand added in v0.24.1

func NewCommand(logger *dkplog.Logger) *cobra.Command

func NewPluginCommand added in v0.24.3

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

TODO: add options pattern

Types

type FailedConstraints added in v0.26.4

type FailedConstraints map[string]*semver.Constraints

map of plugin name to failed constraints

type PluginsCommand

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

func NewPluginsCommand

func NewPluginsCommand(logger *dkplog.Logger) *PluginsCommand

func (*PluginsCommand) InitPluginServices added in v0.24.1

func (pc *PluginsCommand) InitPluginServices()

func (*PluginsCommand) InstallPlugin added in v0.24.1

func (pc *PluginsCommand) InstallPlugin(ctx context.Context, pluginName string, opts ...installPluginOption) error

function checks if plugin can be installed, creates folders layout and then installs plugin, creates symlink "current" and caches contract.json version - semver version string (e.g. v1.0.0), default: "" (use latest version) useMajor - major version to install, default: -1 (use latest major version) resolvePluginsConflicts - resolve conflicts between installed plugins, default: false

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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