version

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: MPL-2.0 Imports: 5 Imported by: 1

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"

Version is 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.

Jump to

Keyboard shortcuts

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