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

update

package
v7.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BinaryURL = "https://codefloe.com/crowci/crow/releases/download/v%s/crow-cli_%s_%s.tar.gz"
)

Variables

View Source
var Command = &cli.Command{
	Name:  "update",
	Usage: "update the crow CLI to the latest version",
	Flags: []cli.Flag{
		&cli.BoolFlag{
			Name:  "force",
			Usage: "force update even if the latest version is already installed",
		},
	},
	Action: update,
}

Command exports the update command.

Functions

func UnTar

func UnTar(dst string, r io.Reader) error

Types

type NewVersion

type NewVersion struct {
	Version  string
	AssetURL string
}

func CheckForUpdate

func CheckForUpdate(ctx context.Context, force bool) (*NewVersion, error)

type VersionData

type VersionData struct {
	Latest string `json:"latest"`
	Next   string `json:"next"`
	RC     string `json:"rc"`
}

type VersionEntry

type VersionEntry struct {
	Version string   `json:"version"`
	Title   string   `json:"title"`
	Aliases []string `json:"aliases"`
}

Jump to

Keyboard shortcuts

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