mirror of
https://github.com/anchore/grype
synced 2024-09-20 14:31:59 +00:00
9cd917d29c
* update grype to compile windows Signed-off-by: spiffcs <christopher.phillips@anchore.com> Signed-off-by: Christopher Angelo Phillips <christopher.phillips@anchore.com> * update go mod with new stereoscope Signed-off-by: Christopher Angelo Phillips <christopher.phillips@anchore.com> * update build comments Signed-off-by: Christopher Angelo Phillips <christopher.phillips@anchore.com> * small build tags Signed-off-by: Christopher Angelo Phillips <christopher.phillips@anchore.com> * add goreleaser windows Signed-off-by: Christopher Angelo Phillips <christopher.phillips@anchore.com> * bump syft version Signed-off-by: Christopher Angelo Phillips <christopher.phillips@anchore.com> * update tests Signed-off-by: Christopher Angelo Phillips <christopher.phillips@anchore.com> * update test images to use newest pinned golang Signed-off-by: Christopher Angelo Phillips <christopher.phillips@anchore.com>
17 lines
667 B
Go
17 lines
667 B
Go
//go:build windows
|
|
// +build windows
|
|
|
|
package ui
|
|
|
|
import (
|
|
"io"
|
|
)
|
|
|
|
// Select is responsible for determining the specific UI function given select user option, the current platform
|
|
// config values, and environment status (such as a TTY being present). The first UI in the returned slice of UIs
|
|
// is intended to be used and the UIs that follow are meant to be attempted only in a fallback posture when there
|
|
// are environmental problems (e.g. cannot write to the terminal). A writer is provided to capture the output of
|
|
// the final SBOM report.
|
|
func Select(verbose, quiet bool, reportWriter io.Writer) (uis []UI) {
|
|
return append(uis, NewLoggerUI(reportWriter))
|
|
}
|