package
0.0.698
Repository: https://github.com/ory/x.git
Documentation: pkg.go.dev

# Functions

AddUsageTemplateFunc adds a template function to the usage template.
asks for confirmation with the question string s and reads the answer pass nil to use os.Stdin and os.Stdout.
No description provided by the author
AssertUsageTemplates asserts that the usage string of the commands are properly templated.
CheckResponse fatals if err is nil or the response.StatusCode does not match the expectedStatusCode Deprecated: do not use this function in commands, as it makes it impossible to test them.
DisableUsageTemplating resets the commands usage template to the default.
EnableUsageTemplating enables gotemplates for usage strings, i.e.
EnvVarExamplesHelpMessage returns a string containing documentation on how to use environment variables.
ExactArgs fatals if args does not equal l.
Exec runs the provided cobra command with the given reader as STD_IN and the given args.
ExecBackgroundCtx runs the cobra command in the background.
No description provided by the author
ExecExpectedErr is a helper that assumes a failing run from Exec returning ErrNoPrintButFail Returns STD_ERR.
No description provided by the author
ExecNoErr is a helper that assumes a successful run from Exec.
No description provided by the author
ExpectDependency expects every dependency to be not nil or it fatals.
FailSilently is supposed to be used within a commands RunE function.
Fatalf prints to os.Stderr and exists with code 1.
FormatResponse takes an object and prints a json.MarshalIdent version of it or fatals.
MinArgs fatals if args does not satisfy min.
Must fatals with the optional message if err is not nil.
NewClient creates a new HTTP client.
No description provided by the author
NewLoudErrPrinter returns a ConditionalPrinter that only prints to cmd.ErrOrStderr when --quiet is not set.
NewLoudOutPrinter returns a ConditionalPrinter that only prints to cmd.OutOrStdout when --quiet is not set.
NewLoudPrinter returns a ConditionalPrinter that only prints to w when --quiet is not set.
NewQuietErrPrinter returns a ConditionalPrinter that only prints to cmd.ErrOrStderr when --quiet is set.
NewQuietOutPrinter returns a ConditionalPrinter that only prints to cmd.OutOrStdout when --quiet is set.
NewQuietPrinter returns a ConditionalPrinter that only prints to w when --quiet is set.
ParsePaginationArgs parses pagination arguments from the command line.
ParseTokenPaginationArgs parses token-based pagination arguments from the command line.
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
RangeArgs fatals if args does not satisfy any of the lengths set in r.
No description provided by the author
RegisterHTTPClientFlags registers HTTP client configuration flags.
No description provided by the author
No description provided by the author
No description provided by the author
Remote returns the remote endpoint for the given command.
RemoteURI returns the remote URI for the given command.
No description provided by the author
Version returns a *cobra.Command that handles the `version` command.
ZeroOrTwoArgs requires either no or 2 arguments.

# 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
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
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

ErrNilDependency is returned if a dependency is missing.
ErrNoPrintButFail is returned to detect a failure state that was already reported to the user in some way.

# Structs

CallbackWriter will execute each callback once the message is received.
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

No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author