Documentation
¶
Overview ¶
Package cli assembles the kubesplaining cobra commands that drive the collect → analyze → report pipeline and its supporting utilities.
Index ¶
- func NewCreateExclusionsCmd() *cobra.Command
- func NewDownloadCmd(build BuildInfo) *cobra.Command
- func NewReportCmd() *cobra.Command
- func NewRootCmd(build BuildInfo) *cobra.Command
- func NewScanCmd(build BuildInfo) *cobra.Command
- func NewScanResourceCmd() *cobra.Command
- func NewVersionCmd(build BuildInfo) *cobra.Command
- type BuildInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCreateExclusionsCmd ¶
NewCreateExclusionsCmd returns the "create-exclusions-file" subcommand, which emits a starter exclusions YAML from a preset and can pre-populate system namespaces discovered in an existing snapshot.
func NewDownloadCmd ¶
NewDownloadCmd returns the "download" subcommand, which collects a live cluster snapshot and writes it to a JSON file for later offline analysis.
func NewReportCmd ¶
NewReportCmd returns the "report" subcommand, which regenerates HTML/JSON/CSV/SARIF artifacts from a previously produced findings JSON file without re-running analysis.
func NewRootCmd ¶
NewRootCmd builds the top-level kubesplaining command with all subcommands attached.
func NewScanCmd ¶
NewScanCmd returns the "scan" subcommand, which runs the full analyzer pipeline against either a live cluster or a previously collected snapshot and emits reports.
func NewScanResourceCmd ¶
NewScanResourceCmd returns the "scan-resource" subcommand, which analyzes a single Kubernetes manifest file offline without requiring cluster access.
func NewVersionCmd ¶
NewVersionCmd returns a command that prints embedded build information and exits.