update

package
v2.8.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = &cli.Command{
	Name:  "update",
	Usage: "update the woodpecker-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 added in v2.5.0

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 added in v2.5.0

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

Jump to

Keyboard shortcuts

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