flagParams

package
v1.0.37 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 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) GetInt

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

func (*Handler) GetString

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

func (*Handler) InitViper

func (h *Handler) InitViper()

func (*Handler) RegisterBool

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

func (*Handler) RegisterInt

func (h *Handler) RegisterInt(cmd *cobra.Command, name, shorthand string, defaultValue int, description string)

func (*Handler) RegisterString

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳