params

package
v0.12.12 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: MIT Imports: 5 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) GetBool

func (h *Handler) GetBool(cmd *cobra.Command, name string) bool

func (*Handler) GetPersistentString

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

func (*Handler) GetString

func (h *Handler) GetString(cmd *cobra.Command, name string) string

func (*Handler) GetStringP

func (h *Handler) GetStringP(cmd *cobra.Command, name string) *string

func (*Handler) GetUint32

func (h *Handler) GetUint32(name string) uint32

func (*Handler) GetUint32P

func (h *Handler) GetUint32P(name string) *uint32

func (*Handler) InitViper

func (h *Handler) InitViper() error

func (*Handler) RegisterBool

func (h *Handler) RegisterBool(cmd *cobra.Command, name string, defaultValue bool, description string)

func (*Handler) RegisterPersistentString

func (h *Handler) RegisterPersistentString(cmd *cobra.Command, name, defaultValue, description string)

func (*Handler) RegisterString

func (h *Handler) RegisterString(cmd *cobra.Command, name, defaultValue, description string)

func (*Handler) RegisterUInt32

func (h *Handler) RegisterUInt32(cmd *cobra.Command, name string, defaultValue uint32, description string)

Jump to

Keyboard shortcuts

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