Documentation
¶
Index ¶
- type Handler
- func (h *Handler) GetBool(cmd *cobra.Command, name string) bool
- func (h *Handler) GetInt(cmd *cobra.Command, name string) int
- func (h *Handler) GetString(cmd *cobra.Command, name string) string
- func (h *Handler) InitViper()
- func (h *Handler) RegisterBool(cmd *cobra.Command, name, shorthand string, defaultValue bool, ...)
- func (h *Handler) RegisterInt(cmd *cobra.Command, name, shorthand string, defaultValue int, ...)
- func (h *Handler) RegisterString(cmd *cobra.Command, name, shorthand, defaultValue, description string)
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 (*Handler) RegisterBool ¶
func (*Handler) RegisterInt ¶
Click to show internal directories.
Click to hide internal directories.