Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UI ¶
type UI interface { Setup(unsubscribe func() error) error partybus.Handler Teardown(force bool) error }
func NewEphemeralTerminalUI ¶ added in v0.18.0
func NewEphemeralTerminalUI() UI
NewEphemeralTerminalUI writes all events to a TUI and writes the final report to the given writer.
func NewLoggerUI ¶ added in v0.18.0
func NewLoggerUI() UI
NewLoggerUI writes all events to the common application logger and writes the final report to the given writer.
func Select ¶
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.