cmderr

package
v0.37.3 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAPIKeyAndInsightsProjectID added in v0.30.10

func CheckAPIKeyAndInsightsProjectID(projectID string) error

Checks that an API key and a project ID are provided, and that the API key is valid for the project ID.

func RequirePostmanAPICredentials

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