mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 08:23:15 +01:00
35 lines
776 B
Go
35 lines
776 B
Go
package main
|
|
|
|
import (
|
|
_ "modernc.org/sqlite"
|
|
|
|
"github.com/anchore/clio"
|
|
"github.com/anchore/syft/cmd/syft/cli"
|
|
"github.com/anchore/syft/cmd/syft/internal"
|
|
)
|
|
|
|
// applicationName is the non-capitalized name of the application (do not change this)
|
|
const applicationName = "syft"
|
|
|
|
// all variables here are provided as build-time arguments, with clear default values
|
|
var (
|
|
version = internal.NotProvided
|
|
buildDate = internal.NotProvided
|
|
gitCommit = internal.NotProvided
|
|
gitDescription = internal.NotProvided
|
|
)
|
|
|
|
func main() {
|
|
app := cli.Application(
|
|
clio.Identification{
|
|
Name: applicationName,
|
|
Version: version,
|
|
BuildDate: buildDate,
|
|
GitCommit: gitCommit,
|
|
GitDescription: gitDescription,
|
|
},
|
|
)
|
|
|
|
app.Run()
|
|
}
|