Documentation
¶
Overview ¶
Package cli assembles the Draugr command-line interface on top of Cobra.
Index ¶
Constants ¶
const DescriptorName = "draugr.saga.yaml"
DescriptorName is the file `draugr init` writes. It is one of several names a scan will find, not the only one — see descriptorsIn.
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
Execute builds and runs the root command using the process arguments, wiring telemetry around it. It returns a process exit code.
func IsFragmentFile ¶ added in v0.69.0
IsFragmentFile reports whether a filename is a Saga fragment.
A distinct file type rather than a convention, because editors decide which schema to apply from the name: the Saga schema requires a release, so a fragment named `*.saga.yaml` would be flagged as invalid in every editor that reads the published catalogue.
func ZeroConfigControls ¶ added in v0.32.0
ZeroConfigControls lists those controls in a readable form, e.g. "sca, secrets, sast, and iac".
Types ¶
This section is empty.