command

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2020 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
	IgnoreFileMismatchDataSources    string
	IgnoreFileMismatchResources      string
	IgnoreFileMissingDataSources     string
	IgnoreFileMissingResources       string
	IgnoreSideNavigationDataSources  string
	IgnoreSideNavigationResources    string
	LogLevel                         string
	Path                             string
	ProviderName                     string
	ProvidersSchemaJson              string
	RequireGuideSubcategory          bool
	RequireResourceSubcategory       bool
	RequireSideNavigation            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