Documentation
¶
Overview ¶
package subcmds defines vpcanalyzer's subcommands, their flags and their behavior.
We use the various Run methods of cobra.Command as follows (order corresponds to execution order). 1. PersistentPreRun (root) - initialize logger 2. PersistentPreRunE/PreRunE (subcommands and subsubcommands) - check flag validity 3. RunE (subcommands and subsubcommands) - build vpc-configs and call the analyzer with parsed flag values
This order prevents code duplication - all common code is in root; subcommand-specific code is in its subcommand
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDiffCommand ¶
func NewExplainCommand ¶
func NewLintCommand ¶ added in v0.5.2
func NewReportCommand ¶
func NewRootCommand ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.