github.com/haagen/force@v0.19.6-0.20140911230915-22addd930b34/version.go (about) 1 package main 2 3 import ( 4 "fmt" 5 ) 6 7 const ( 8 Version = "dev" 9 ) 10 11 var cmdVersion = &Command{ 12 Run: runVersion, 13 Usage: "version", 14 Short: "Display current version", 15 Long: ` 16 Display current version 17 18 Examples: 19 20 force version 21 `, 22 } 23 24 func init() { 25 } 26 27 func runVersion(cmd *Command, args []string) { 28 fmt.Println(Version) 29 }