version

package
v0.0.1-20220909-0002 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ShowVersion = &command.AddCmd{
	GeneratePID: false,
	LockProcess: false,
	ProcessName: "version",
	Cmd:         "version",
	Name:        "Application Version",
	OnExecute: func(cmd *command.AddCmd) {

		appVersion := version.GetAppVersion()
		fmt.Print(appVersion.Version)
	},
}
View Source
var ShowVersionJSON = &command.AddCmd{
	GeneratePID: false,
	LockProcess: false,
	ProcessName: "version:json",
	Cmd:         "version:json",
	Name:        "Application Version Json Output",
	OnExecute: func(cmd *command.AddCmd) {

		appVersion := version.GetAppVersion()
		fmt.Print(json.Encode(appVersion))
	},
}

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