version

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:   "version",
	Short: "Check the version info",
	Run: func(cmd *cobra.Command, args []string) {
		buf := &bytes.Buffer{}
		_ = template.Must(template.New("version").Parse(version)).Execute(buf, map[string]interface{}{
			"Version":   global.Version,
			"Commit":    global.Commit,
			"Date":      global.CommitDate,
			"GoVersion": runtime.Version(),
			"GOOS":      runtime.GOOS,
			"GOARCH":    runtime.GOARCH,
		})
		color.Blue(buf.String())
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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