command

package
v0.23.3 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2025 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LogLevelFlagHelpDefinition  = `-log-level=[TRACE|DEBUG|INFO|WARN|ERROR]`
	LogLevelFlagHelpDescription = `Log output level.`
)
View Source
const CommandHelpOptionFormat = "  %s\t%s\t\n"

Variables

This section is empty.

Functions

func Commands

func Commands(ui cli.Ui) map[string]cli.CommandFactory

func ConfigureLogging

func ConfigureLogging(loggerName string, logLevel string)

func LogLevelFlag

func LogLevelFlag(flagSet *flag.FlagSet, varToSave *string)

func LogLevelFlagHelp

func LogLevelFlagHelp(w *tabwriter.Writer)

Types

type CheckCommand

type CheckCommand struct {
	Ui cli.Ui
}

CheckCommand is a Command implementation

func (*CheckCommand) Help

func (*CheckCommand) Help() string

func (*CheckCommand) Name

func (c *CheckCommand) Name() string

func (*CheckCommand) Run

func (c *CheckCommand) Run(args []string) int

func (*CheckCommand) Synopsis

func (c *CheckCommand) Synopsis() string

type CheckCommandConfig

type CheckCommandConfig struct {
	AllowedGuideSubcategories                  string
	AllowedGuideSubcategoriesFile              string
	AllowedResourceSubcategories               string
	AllowedResourceSubcategoriesFile           string
	EnableContentsCheck                        bool
	EnableEnhancedRegionCheck                  bool
	IgnoreCdktfMissingFiles                    bool
	IgnoreContentsCheckDataSources             string
	IgnoreContentsCheckActions                 string
	IgnoreContentsCheckEphemerals              string
	IgnoreContentsCheckFunctions               string
	IgnoreContentsCheckResources               string
	IgnoreEnhancedRegionCheckDataSources       string
	IgnoreEnhancedRegionCheckDataSourcesFile   string
	IgnoreEnhancedRegionCheckEphemerals        string
	IgnoreEnhancedRegionCheckEphemeralsFile    string
	IgnoreEnhancedRegionCheckResources         string
	IgnoreEnhancedRegionCheckResourcesFile     string
	IgnoreEnhancedRegionCheckSubcategories     string
	IgnoreEnhancedRegionCheckSubcategoriesFile string
	IgnoreFileMismatchDataSources              string
	IgnoreFileMismatchActions                  string
	IgnoreFileMismatchEphemerals               string
	IgnoreFileMismatchFunctions                string
	IgnoreFileMismatchListResources            string
	IgnoreFileMismatchResources                string
	IgnoreFileMissingDataSources               string
	IgnoreFileMissingActions                   string
	IgnoreFileMissingEphemerals                string
	IgnoreFileMissingFunctions                 string
	IgnoreFileMissingListResources             string
	IgnoreFileMissingResources                 string
	LogLevel                                   string
	Path                                       string
	ProviderName                               string
	ProviderSource                             string
	ProvidersSchemaJson                        string
	RequireGuideSubcategory                    bool
	RequireResourceSubcategory                 bool
	RequireSchemaOrdering                      bool
}

type VersionCommand

type VersionCommand struct {
	Version *version.VersionInfo
	Ui      cli.Ui
}

VersionCommand is a Command implementation prints the version.

func (*VersionCommand) Help

func (c *VersionCommand) Help() string

func (*VersionCommand) Name

func (c *VersionCommand) Name() string

func (*VersionCommand) Run

func (c *VersionCommand) Run(_ []string) int

func (*VersionCommand) Synopsis

func (c *VersionCommand) Synopsis() string

Jump to

Keyboard shortcuts

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