mirror of
https://github.com/anchore/syft
synced 2024-11-10 06:14:16 +00:00
49e7f399f9
Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
34 lines
776 B
Go
34 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()
|
|
}
|