cmderr

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequireAkitaAPICredentials added in v0.26.1

func RequireAkitaAPICredentials(explanation string) (string, string, error)

Checks that a user has configured their API key and secret and returned them. If the user has not configured their API key, a user-friendly error message is printed and an error is returned.

func RequirePostmanAPICredentials added in v0.26.1

func RequirePostmanAPICredentials(explanation string) (string, error)

Checks that a user has configured their Postman API key and returned them. If the user has not configured their API key, a user-friendly error message is printed and an error is returned.

Types

type AkitaErr

type AkitaErr struct {
	Err error
}

Wrapper for all Akita generated error vs CLI parsing error. Used to determine whether to print usage message on error.

func (AkitaErr) Cause

func (a AkitaErr) Cause() error

github.com/pkg/errors causer interface

func (AkitaErr) Error

func (a AkitaErr) Error() string

func (AkitaErr) Unwrap

func (a AkitaErr) Unwrap() error

github.com/pkg/errors Unwrap interface

Jump to

Keyboard shortcuts

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