subcmds

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

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 FlagSet

func FlagSet(cmd *cobra.Command, flagName string) bool

func NewDiffCommand

func NewDiffCommand(args *inArgs) *cobra.Command

func NewExplainCommand

func NewExplainCommand(args *inArgs) *cobra.Command

func NewLintCommand added in v0.5.2

func NewLintCommand(args *inArgs) *cobra.Command

func NewReportCommand

func NewReportCommand(args *inArgs) *cobra.Command

func NewRootCommand

func NewRootCommand() *cobra.Command

Types

This section is empty.

Jump to

Keyboard shortcuts

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