Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Branch = ""
View Source
var BuildTime = ""
View Source
var Cmd = &cobra.Command{ Use: "version", Short: "Display gitops version", Run: runCmd, PostRun: func(cmd *cobra.Command, args []string) { CheckVersion(CheckpointParams()) }, }
View Source
var GitCommit = ""
View Source
var Version = "v0.0.0"
The current wego version
Functions ¶
func CheckVersion ¶
func CheckVersion(p *checkpoint.CheckParams)
CheckVersion looks to see if there is a newer version of the software available
func CheckpointParams ¶
func CheckpointParams() *checkpoint.CheckParams
CheckpointParams creates the structure to pass to CheckVersion
func CheckpointParamsWithFlags ¶
func CheckpointParamsWithFlags(params *checkpoint.CheckParams, c *cobra.Command) *checkpoint.CheckParams
CheckpointParamsWithFlags adds the object and command from the arguments list to the checkpoint parameters
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.