update

package
v4.6.1 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BinaryURL = "https://codeberg.org/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