mirror of
https://github.com/wahyd4/forego.git
synced 2026-08-08 21:01:01 +10:00
21 lines
270 B
Go
21 lines
270 B
Go
package main
|
|
|
|
var Version = "dev"
|
|
|
|
var cmdVersion = &Command{
|
|
Run: runVersion,
|
|
Usage: "version",
|
|
Short: "Display current version",
|
|
Long: `
|
|
Display current version
|
|
|
|
Examples:
|
|
|
|
forego version
|
|
`,
|
|
}
|
|
|
|
func runVersion(cmd *Command, args []string) {
|
|
Println(Version)
|
|
}
|