Documentation
¶
Overview ¶
Package cli implements the stacksentry command-line interface.
Index ¶
Constants ¶
View Source
const ( // ExitOK means the command succeeded and no finding met --fail-on. ExitOK = 0 // ExitFindings means at least one finding met the --fail-on threshold. ExitFindings = 1 // ExitError means invalid input, an unreadable file, an invalid // configuration or an unavailable Docker daemon. ExitError = 2 )
Exit codes. See docs/exit-codes.md.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Streams ¶
type Streams struct {
Out io.Writer
Err io.Writer
// IsTerminal reports whether w is an interactive terminal.
IsTerminal func(w io.Writer) bool
}
Streams are the standard streams of the process.
func DefaultStreams ¶
func DefaultStreams() Streams
DefaultStreams returns the process' standard streams.
Click to show internal directories.
Click to hide internal directories.