Documentation ¶
Index ¶
- func Endpoints() (map[string]string, error)
- func HandleError(response *resty.Response, err error)
- func InitCommand(cmd *cobra.Command)
- func IsAuthorized() bool
- func NewSpinner() *spinner.Spinner
- func PrettyArray(o []string)
- func PrettyMapAsArray(o map[string]string)
- func PrettyStruct(o interface{})
- func PrettyStructArray(slice interface{}, class reflect.Type)
- func R() *resty.Request
- func RandSeq(length int) string
- func ReadProperties(filename string) (map[string]string, error)
- func SetVersion(version string)
- func UpdateClient(currentVersion string, forceUpdate bool) error
- func UsageTemplateWithArgs(cmd *cobra.Command, argNames ...string)
- func WithAuthorized(code func())
- type ErrResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleError ¶ added in v0.9.17
func HandleError(response *resty.Response, err error)
func InitCommand ¶
func IsAuthorized ¶
func IsAuthorized() bool
func NewSpinner ¶
func PrettyArray ¶
func PrettyArray(o []string)
func PrettyMapAsArray ¶
func PrettyStruct ¶
func PrettyStruct(o interface{})
func PrettyStructArray ¶
func SetVersion ¶ added in v0.9.12
func SetVersion(version string)
func UpdateClient ¶ added in v0.9.14
func UsageTemplateWithArgs ¶
func WithAuthorized ¶
func WithAuthorized(code func())
Types ¶
Click to show internal directories.
Click to hide internal directories.