# Functions
AddFlag registers a new custom flag for the command path.
No description provided by the author
No description provided by the author
BuildSecretsCommands sets up basic commands and the credentials file so that new auth handlers can be registered.
No description provided by the author
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.
HandleAfter runs any registered post-request handlers for the given command.
HandleBefore runs any registered pre-request handlers for the given command.
Init will set up the CLI.
No description provided by the author
LoadConfiguration loads secret and settings files.
LogMiddleware adds verbose log info to HTTP requests.
No description provided by the author
No description provided by the author
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.
No description provided by the author
RegisterAfter registers a post-request handler for the given command path.
No description provided by the author
RegisterBefore registers a pre-request handler for the given command path.
No description provided by the author
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.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
AuthHandlers is the map of registered auth type names to handlers.
Client makes HTTP requests and parses the responses.
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.
No description provided by the author
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
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
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.
No description provided by the author
DefaultFormatter can apply JMESPath queries and can output prettyfied JSON and YAML output.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
AuthHandler describes a handler that can be called on a request to inject auth information and is agnostic to the type of auth.
No description provided by the author
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.
No description provided by the author