update

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrPluginNewer = errors.New("installed plugin is newer than the candidate")

Functions

This section is empty.

Types

type Command

type Command struct {
	LocalFile       bool   `short:"f" help:"If set, treat the plugin-name arg as the path to a local file"`
	Registry        string `short:"r" default:"default" help:"The name of the registry to install the plugin from"`
	PluginVersion   string `help:"The version to install from the registry. Ignored if --local-file is set"`
	AllowDowngrades bool   `default:"false" help:"If set, allow an upgrade even if the new version is lower than the installed version"`
	Install         bool   `default:"false" help:"If set, install the plugin if the plugin isn't already installed"`
	PluginName      string `` /* 130-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Command) BeforeApply

func (i *Command) BeforeApply(ctx *kong.Context) error

func (*Command) Run

func (i *Command) Run() error

Jump to

Keyboard shortcuts

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