github.com/BIG5Concepts/forego@v0.16.1/version.go (about)

     1  package main
     2  
     3  var Version = "dev"
     4  
     5  var cmdVersion = &Command{
     6  	Run:   runVersion,
     7  	Usage: "version",
     8  	Short: "Display current version",
     9  	Long: `
    10  Display current version
    11  
    12  Examples:
    13  
    14  	forego version
    15  `,
    16  }
    17  
    18  func runVersion(cmd *Command, args []string) {
    19  	Println(Version)
    20  }