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