version cmd file
This commit is contained in:
parent
ff08b0470e
commit
b71105e503
|
@ -0,0 +1,22 @@
|
||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"fmt"
|
||||||
|
"github.com/dballard/warren/lib/warren"
|
||||||
|
)
|
||||||
|
|
||||||
|
var versionUsage = `
|
||||||
|
warren version - prints the current version
|
||||||
|
`
|
||||||
|
|
||||||
|
var versionCmd = &warren.Command{
|
||||||
|
Name: "version",
|
||||||
|
Usage: versionUsage,
|
||||||
|
Summary: "prints the current version",
|
||||||
|
Help: versionUsage,
|
||||||
|
Run: versionRun,
|
||||||
|
}
|
||||||
|
|
||||||
|
func versionRun(cmd *warren.Command, args ...string) {
|
||||||
|
fmt.Println(BuildGitBranch, " ", BuildGitHash, " ", BuildDate)
|
||||||
|
}
|
Loading…
Reference in New Issue