cmd

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCommonArgs

func AddCommonArgs(cmd *cobra.Command)

func ClearValues added in v0.8.5

func ClearValues()

func ExitIfFindings added in v0.10.0

func ExitIfFindings(r *reportx.Report, scansFiltered bool)

ExitIfFindings exits with status 1 if r has findings. When scansFiltered is true (the caller explicitly selected scans via --scans), any finding exits, ignoring the severity threshold. Otherwise, only findings meeting the severity threshold exit.

func FilterScans added in v0.9.0

func FilterScans(scans []string) []string

func GetExcludeScans added in v0.7.3

func GetExcludeScans() []string

func GetIncludeScans added in v0.7.3

func GetIncludeScans() []string

func GetMinSeverity added in v0.10.0

func GetMinSeverity() *float64

GetMinSeverity returns a *float64 set to GetSeverityThreshold() when GetOnlyScansAboveThreshold() is true, for use as scan.ScanOptions.MinSeverity; nil otherwise (no severity-based check filtering).

func GetNoProgress added in v0.8.1

func GetNoProgress() bool

func GetOnlyScansAboveThreshold added in v0.10.0

func GetOnlyScansAboveThreshold() bool

func GetSeverityThreshold added in v0.8.0

func GetSeverityThreshold() float64

func NewHTTPClientFromCmd added in v0.9.0

func NewHTTPClientFromCmd(cmd *cobra.Command) (*request.Client, error)

func NewProgressBar

func NewProgressBar(max int) *progressbar.ProgressBar

func SetOnlyScansAboveThreshold added in v0.10.0

func SetOnlyScansAboveThreshold(b bool)

func SetSeverityThreshold added in v0.9.0

func SetSeverityThreshold(t float64)

func WriteReport added in v0.10.0

func WriteReport(ctx context.Context, cmd *cobra.Command, r *reportx.Report) error

WriteReport formats and writes r according to the --format/--output/ --report-url/--report-header flags registered via cobrareportx.

Types

This section is empty.

Jump to

Keyboard shortcuts

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