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 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 ¶
Types ¶
type NewVersion ¶
func CheckForUpdate ¶
func CheckForUpdate(ctx context.Context, force bool) (*NewVersion, error)
type VersionData ¶
Click to show internal directories.
Click to hide internal directories.