Documentation
¶
Overview ¶
Package cli reads command-line arguments and runs audits through the shared API. The executable supplies the API functions, so this internal package does not import the public library or maintain a separate audit implementation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type API ¶
type API struct {
Version string
LoadManifest func(io.Reader) (contracts.Manifest, error)
Audit func(context.Context, contracts.Manifest, contracts.Options) (contracts.Report, error)
WriteJSON func(io.Writer, contracts.Report) error
WriteMarkdown func(io.Writer, contracts.Report) error
}
API supplies the command version and the manifest loader, audit function and report writers used by both the command and library callers.