ui

package
v0.84.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

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

func Select(verbose, quiet bool) (uis []UI)

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL