internal

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: MIT Imports: 20 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 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 ReadProperties

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

func UsageTemplateWithArgs

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

func WithAuthorized

func WithAuthorized(code func())

func WriteNetrc

func WriteNetrc(netrc []NetrcLine)

Types

type ErrResp

type ErrResp struct {
	Error   string      `json:"error"`
	Details interface{} `json:"details,omitempty"`
}

type NetrcLine

type NetrcLine struct {
	Machine  string
	Login    string
	Password string
}

func ReadNetrc

func ReadNetrc() ([]NetrcLine, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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