globalflags

package
v0.1.0-test-skip-publi... Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

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

	JSONOutputFormat   = "json"
	PrettyOutputFormat = "pretty"
)

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
}

func Parse

func Parse(cmd *cobra.Command) *GlobalFlagModel

Jump to

Keyboard shortcuts

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