Documentation
¶
Index ¶
- type Handler
- func (h *Handler) GetBool(cmd *cobra.Command, name string) bool
- func (h *Handler) GetPersistentString(name string) string
- func (h *Handler) GetString(cmd *cobra.Command, name string) string
- func (h *Handler) GetStringP(cmd *cobra.Command, name string) *string
- func (h *Handler) GetUint32(name string) uint32
- func (h *Handler) GetUint32P(name string) *uint32
- func (h *Handler) InitViper() error
- func (h *Handler) RegisterBool(cmd *cobra.Command, name string, defaultValue bool, description string)
- func (h *Handler) RegisterPersistentString(cmd *cobra.Command, name, defaultValue, description string)
- func (h *Handler) RegisterString(cmd *cobra.Command, name, defaultValue, description string)
- func (h *Handler) RegisterUInt32(cmd *cobra.Command, name string, defaultValue uint32, 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) GetPersistentString ¶
func (*Handler) GetUint32P ¶
func (*Handler) RegisterBool ¶
func (*Handler) RegisterPersistentString ¶
func (*Handler) RegisterString ¶
Click to show internal directories.
Click to hide internal directories.