Help us shape the future of Go! Take the 2026 Go Developer Survey

updatecmd

package
v1.101.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2026 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Overview

Package updatecmd provides commands for updating the CLI and related binaries.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrUserAbortedInstallation is returned when user cancels an installation.
	ErrUserAbortedInstallation = errors.New("user canceled installation")
	ErrNoVersion               = errors.New("failed to find current version - did you install following official instructions?")
)

Functions

func NewCmd

func NewCmd(injectedApp *application.Lux, version string) *cobra.Command

NewCmd creates the update command.

func Update

func Update(cmd *cobra.Command, isUserCalled bool, version string) error

Update checks for and installs the latest CLI version.

Types

This section is empty.

Jump to

Keyboard shortcuts

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