Help us shape the future of Go! Take the 2026 Go Developer Survey

globalflags

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 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