plugins

package
v0.24.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand added in v0.24.1

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

Types

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, version string, useMajor int) error

function checks if plugin can be installed, creates folders layout and then installs plugin, creates symlink "current" and caches contract.json if version (e.g. v1.0.0) is not specified - use latest version if useMajor > -1 (can be 0) - use specific major version

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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