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