# Functions
AddFlag registers a new custom flag for the command path.
AddGlobalFlag will make a new global flag on the root command.
DeepAssign recursively merges a source map into the target.
GetBody returns the request body if one was passed either as shorthand arguments or via stdin.
GetMatchValue returns a value for the given selector query.
GetProfile returns the current profile's configuration.
HandleAfter runs any regeistered post-request handlers for the given command.
HandleBefore runs any registered pre-request handlers for the given command.
Init will set up the CLI.
InitCredentials sets up the profile/auth commands.
InitCredentialsFile sets up the creds file and `profile` global parameter.
LogMiddleware adds verbose log info to HTTP requests.
Markdown renders terminal-friendly Markdown content.
Match returns `true` if the expected value of the match type is found in the given response data.
NewDefaultFormatter creates a new formatted with autodetected TTY capabilities.
ProfileKeys lets you specify authentication profile keys to be used in the credentials file.
ProfileListKeys sets which keys will be shown in the table when calling the `auth list-profiles` command.
RegisterAfter registers a post-request handler for the given command path.
RegisterBefore registers a pre-request handler for the given command path.
SetCustomFlags sets up the command with additional registered flags.
UnmarshalRequest body into a given structure `s`.
UnmarshalResponse into a given structure `s`.
UseAuth registers a new auth handler for a given type name.
UserAgentMiddleware sets the user-agent header on requests.
# Variables
AuthHandlers is the map of registered auth type names to handlers.
Cache is used to store temporary data between runs.
Client makes HTTP requests and parses the responses.
Creds represents a configuration file storing credential-related information.
HTTP Client Errors.
Formatter is the currently configured response output formatter.
PreRun is a function that will run after flags are parsed but before the command handler has been called.
Root command (entrypoint) of the CLI.
Stderr is a cross-platform, color-safe writer if colors are enabled, otherwise it defaults to `os.Stderr`.
Stdout is a cross-platform, color-safe writer if colors are enabled, otherwise it defaults to `os.Stdout`.
# Structs
Config is used to pass settings to the CLI.
ConsoleWriter reads a JSON object per write operation and outputs an optionally colored human readable version on the Out writer.
CredentialsFile holds credential-related information.
DefaultFormatter can apply JMESPath queries and can output prettyfied JSON and YAML output.
# Interfaces
AuthHandler describes a handler that can be called on a request to inject auth information and is agnostic to the type of auth.
ResponseFormatter will filter, prettify, and print out the results of a call.
# Type aliases
AfterHandlerFunc is a function that runs after a request has been sent and the response is unmarshalled.
BeforeHandlerFunc is a function that runs before a command sends a request over the wire.