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

     1  //go:build windows
     2  // +build windows
     3  
     4  package ui
     5  
     6  import "github.com/anchore/clio"
     7  
     8  // Select is responsible for determining the specific UI function given select user option, the current platform
     9  // config values, and environment status (such as a TTY being present). The first UI in the returned slice of UIs
    10  // is intended to be used and the UIs that follow are meant to be attempted only in a fallback posture when there
    11  // are environmental problems (e.g. cannot write to the terminal). A writer is provided to capture the output of
    12  // the final SBOM report.
    13  func Select(verbose, quiet bool) (uis []clio.UI) {
    14  	return append(uis, None(quiet))
    15  }