Documentation
¶
Index ¶
Constants ¶
View Source
const ( SystemPluginName = "system" PackagePluginName = "package" )
Variables ¶
This section is empty.
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.