github.com/jaypipes/ghw@v0.21.1/cmd/ghwc/main.go (about)

     1  //
     2  // Use and distribution licensed under the Apache license version 2.
     3  //
     4  // See the COPYING file in the root project directory for full text.
     5  //
     6  
     7  package main
     8  
     9  import (
    10  	"github.com/jaypipes/ghw/cmd/ghwc/commands"
    11  )
    12  
    13  var (
    14  	// version of application at compile time (-X 'main.version=$(VERSION)').
    15  	version = "(Unknown Version)"
    16  	// buildHash GIT hash of application at compile time (-X 'main.buildHash=$(GITCOMMIT)').
    17  	buildHash = "No Git-hash Provided."
    18  	// buildDate of application at compile time (-X 'main.buildDate=$(BUILDDATE)').
    19  	buildDate = "No Build Date Provided."
    20  )
    21  
    22  func main() {
    23  	commands.Execute(version, buildHash, buildDate)
    24  }