updater

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateBinaries

func UpdateBinaries(
	logger *zap.Logger,
	options Options,
	out io.Writer,
	colorsFactory *colors.DecoratorFactory,
	cmdRunner gocli.GoCmdRunner,
	lister gobinaries.DirectoryLister,
	fs FilesystemUtils,
) error

UpdateBinaries updates binaries in GOBIN

If binariesToUpdate is empty, the command will attempt to update all found binaries in GOBIN.

Types

type CommonUpdateProblem added in v0.2.0

type CommonUpdateProblem struct {
	// contains filtered or unexported fields
}

func FindCommonUpdateProblems added in v0.2.0

func FindCommonUpdateProblems(goInstallOutput string) []CommonUpdateProblem

func (*CommonUpdateProblem) String added in v0.2.0

type Filesystem

type Filesystem struct{}

func (*Filesystem) Chdir

func (fs *Filesystem) Chdir(dir string) error

type FilesystemUtils

type FilesystemUtils interface {
	Chdir(dir string) error
}

type Options

type Options struct {
	Verbose bool
	DryRun  bool
	// List of binary names to update.
	// If empty, will update all binaries in GOBIN
	BinariesToUpdate []string
}

Jump to

Keyboard shortcuts

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