Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.