maintain

package
v0.0.0-...-4f22f6d Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	Region             string
	RegionIsSet        bool
	RenewNatsCert      bool
	RenewNatsCertIsSet bool
	Namespace          string
	NamespaceIsSet     bool
	IAAS               string
	IAASIsSet          bool
	Stage              int
	StageIsSet         bool
}

Args are arguments passed to the info command

func (*Args) MarkSetFlags

func (a *Args) MarkSetFlags(c FlagSetChecker) error

MarkSetFlags is marking which info Args have been set

func (*Args) Validate

func (a *Args) Validate() error

type ContextWrapper

type ContextWrapper struct {
	// contains filtered or unexported fields
}

ContextWrapper wraps a CLI context for testing

func (*ContextWrapper) FlagNames

func (t *ContextWrapper) FlagNames() (names []string)

FlagNames lists all flags it's possible for a user to provide

func (*ContextWrapper) IsSet

func (t *ContextWrapper) IsSet(name string) bool

IsSet tells you if a user provided a flag

type FlagSetChecker

type FlagSetChecker interface {
	IsSet(name string) bool
	FlagNames() (names []string)
}

FlagSetChecker allows us to find out if flags were set, adn what the names of all flags are

Jump to

Keyboard shortcuts

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