internal

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Endpoints

func Endpoints() (map[string]string, error)

func HandleError added in v0.9.17

func HandleError(response *resty.Response, err error)

func InitCommand

func InitCommand(cmd *cobra.Command)

func IsAuthorized

func IsAuthorized() bool

func NewSpinner

func NewSpinner() *spinner.Spinner

func PrettyArray

func PrettyArray(o []string)

func PrettyMapAsArray

func PrettyMapAsArray(o map[string]string)

func PrettyStruct

func PrettyStruct(o interface{})

func PrettyStructArray

func PrettyStructArray(slice interface{}, class reflect.Type)

func R

func R() *resty.Request

func RandSeq added in v0.9.5

func RandSeq(length int) string

func ReadProperties

func ReadProperties(filename string) (map[string]string, error)

func SetVersion added in v0.9.12

func SetVersion(version string)

func UpdateClient added in v0.9.14

func UpdateClient(currentVersion string, forceUpdate bool) error

func UsageTemplateWithArgs

func UsageTemplateWithArgs(cmd *cobra.Command, argNames ...string)

func WithAuthorized

func WithAuthorized(code func())

Types

type ErrResp

type ErrResp struct {
	Code int `json:"code"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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