globalflags

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AsyncFlag        = "async"
	AssumeYesFlag    = "assume-yes"
	OutputFormatFlag = "output-format"
	ProjectIdFlag    = "project-id"
	VerbosityFlag    = "verbosity"

	DebugVerbosity   = string(print.DebugLevel)
	InfoVerbosity    = string(print.InfoLevel)
	WarningVerbosity = string(print.WarningLevel)
	ErrorVerbosity   = string(print.ErrorLevel)

	VerbosityDefault = InfoVerbosity
)

Variables

This section is empty.

Functions

func Configure

func Configure(flagSet *pflag.FlagSet) error

Types

type GlobalFlagModel

type GlobalFlagModel struct {
	Async        bool
	AssumeYes    bool
	OutputFormat string
	ProjectId    string
	Verbosity    string
}

func Parse

func Parse(p *print.Printer, cmd *cobra.Command) *GlobalFlagModel

Jump to

Keyboard shortcuts

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