flagParams

package
v1.0.55 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func New

func New() *Handler

func (*Handler) AllSet added in v1.0.46

func (h *Handler) AllSet(flags ...string) bool

func (*Handler) Bind added in v1.0.38

func (h *Handler) Bind(cmd *cobra.Command)

func (*Handler) GetBool

func (h *Handler) GetBool(name string) bool

func (*Handler) GetInt

func (h *Handler) GetInt(name string) int

func (*Handler) GetLocalZCliYamlFileName added in v1.0.49

func (h *Handler) GetLocalZCliYamlFileName() (string, bool)

func (*Handler) GetString

func (h *Handler) GetString(name string) string

func (*Handler) GetStringSlice added in v1.0.46

func (h *Handler) GetStringSlice(name string) []string

func (*Handler) HasSet added in v1.0.46

func (h *Handler) HasSet(flags ...string) bool

func (*Handler) IsSet added in v1.0.46

func (h *Handler) IsSet(key string) bool

type ParamsReader added in v1.0.46

type ParamsReader interface {
	IsSet(key string) bool
	HasSet(keys ...string) bool
	AllSet(keys ...string) bool

	GetString(name string) string
	GetStringSlice(name string) []string
	GetInt(name string) int
	GetBool(name string) bool
	GetLocalZCliYamlFileName() (string, bool)
}

Jump to

Keyboard shortcuts

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