install

package
v1.10.5 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Before

func Before(ctx context.Context, c *cli.Command) (context.Context, error)

func DoInstall added in v1.10.0

func DoInstall(ctx context.Context, opts *Options) error

DoInstall performs an install with explicit options, safe for concurrent use.

func Execute

func Execute(ctx context.Context, c *cli.Command) error

func Flags

func Flags() []cli.Flag

func NewSource added in v1.0.1

func NewSource(src string, opts *provider.Options) (provider.ISource, error)

Types

type Options added in v1.10.0

type Options struct {
	App                string
	Version            string
	OS                 string
	Arch               string
	Force              bool
	Config             *config.Config
	GitHubToken        string
	GitLabToken        string
	ForgejoToken       string
	NoSignatureVerify  bool
	NoChecksumVerify   bool
	NoScoreCheck       bool
	IncludePreReleases bool
	UseDistCache       bool
	DistCacheURL       string
	Logger             zerolog.Logger
}

Options holds the parameters for a single install operation.

func OptionsFromCLI added in v1.10.0

func OptionsFromCLI(c *cli.Command, cfg *config.Config) *Options

OptionsFromCLI builds Options from a cli.Command, for use by the install command's Execute.

Jump to

Keyboard shortcuts

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