version

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: AGPL-3.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":   consts.Version,
			"Commit":    consts.Commit,
			"Date":      consts.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