github.com/noqcks/syft@v0.0.0-20230920222752-a9e2c4e288e5/cmd/syft/main.go (about)

     1  package main
     2  
     3  import (
     4  	_ "modernc.org/sqlite"
     5  
     6  	"github.com/anchore/clio"
     7  	"github.com/anchore/syft/cmd/syft/cli"
     8  	"github.com/anchore/syft/cmd/syft/internal"
     9  )
    10  
    11  // applicationName is the non-capitalized name of the application (do not change this)
    12  const applicationName = "syft"
    13  
    14  // all variables here are provided as build-time arguments, with clear default values
    15  var (
    16  	version        = internal.NotProvided
    17  	buildDate      = internal.NotProvided
    18  	gitCommit      = internal.NotProvided
    19  	gitDescription = internal.NotProvided
    20  )
    21  
    22  func main() {
    23  	app := cli.Application(
    24  		clio.Identification{
    25  			Name:           applicationName,
    26  			Version:        version,
    27  			BuildDate:      buildDate,
    28  			GitCommit:      gitCommit,
    29  			GitDescription: gitDescription,
    30  		},
    31  	)
    32  
    33  	app.Run()
    34  }