command

package
v0.16.6 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: MPL-2.0 Imports: 16 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
	IgnoreCdktfMissingFiles          bool
	IgnoreFileMismatchDataSources    string
	IgnoreFileMismatchEphemerals     string
	IgnoreFileMismatchFunctions      string
	IgnoreFileMismatchResources      string
	IgnoreFileMissingDataSources     string
	IgnoreFileMissingEphemerals      string
	IgnoreFileMissingFunctions       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