commonflags

package
v0.0.0-...-7220889 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flags

type Flags struct {
	// Environment selection
	Env string
}

Flags are the flags shared by most Karte commands.

func (*Flags) MustSelectKarteConfig

func (flags *Flags) MustSelectKarteConfig(o auth.Options) *client.Config

MustSelectKarteConfig selects the a Karte config corresponding to the environment flag.

func (*Flags) Register

func (flags *Flags) Register(f *flag.FlagSet)

Register registers the common flags.

Jump to

Keyboard shortcuts

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