Documentation
¶
Index ¶
- Constants
- Variables
- func ShowJSON(out *os.File, stderr io.Writer, title string, res gjson.Result, format string, ...) error
- func ShowJSONIterator[T any](stdout *os.File, stderr io.Writer, title string, iter jsonview.Iterator[T], ...) error
- func ValidateBaseURL(value, source string) error
- type BodyContentType
- type FileEmbedStyle
- type FilePathValue
Constants ¶
const Version = "0.21.0" // x-release-please-version
Variables ¶
var ( Command *cli.Command CommandErrorBuffer bytes.Buffer )
var OutputFormats = []string{"auto", "explore", "json", "jsonl", "pretty", "raw", "yaml"}
Functions ¶
func ShowJSON ¶
func ShowJSON(out *os.File, stderr io.Writer, title string, res gjson.Result, format string, explicitFormat bool, transform string) error
Display JSON to the user in various different formats. The explicitFormat parameter indicates whether the format was explicitly set by the user (via --format), which controls whether we silently fall back to json when explore is requested on non-terminal output. Warnings are written to stderr.
func ShowJSONIterator ¶
func ShowJSONIterator[T any](stdout *os.File, stderr io.Writer, title string, iter jsonview.Iterator[T], format string, explicitFormat bool, transform string, itemsToDisplay int64) error
For an iterator over different value types, display its values to the user in different formats. -1 is used to signal no limit of items to display
func ValidateBaseURL ¶
ValidateBaseURL checks that a base URL is correctly prefixed with a protocol scheme and produces a better error message than the person would see otherwise if it doesn't.
Types ¶
type BodyContentType ¶
type BodyContentType int
const ( EmptyBody BodyContentType = iota MultipartFormEncoded ApplicationJSON ApplicationOctetStream )
type FileEmbedStyle ¶
type FileEmbedStyle int
const ( EmbedText FileEmbedStyle = iota EmbedIOReader )
type FilePathValue ¶
type FilePathValue string
FilePathValue is a string wrapper that marks a value as a file path whose contents should be read and embedded in the request. Unlike a regular string, embedFilesValue always treats a FilePathValue as a file path without needing the "@" prefix.
Source Files
¶
- account.go
- accountnumber.go
- accountstatement.go
- accounttransfer.go
- achprenotification.go
- achtransfer.go
- beneficialowner.go
- bookkeepingaccount.go
- bookkeepingentry.go
- bookkeepingentryset.go
- card.go
- carddispute.go
- cardpayment.go
- cardpurchasesupplement.go
- cardpushtransfer.go
- cardtoken.go
- cardvalidation.go
- checkdeposit.go
- checktransfer.go
- cmd.go
- cmdutil.go
- cmdutil_unix.go
- declinedtransaction.go
- digitalcardprofile.go
- digitalwallettoken.go
- entity.go
- entityonboardingsession.go
- event.go
- eventsubscription.go
- export.go
- externalaccount.go
- fednowtransfer.go
- file.go
- filelink.go
- flagoptions.go
- group.go
- inboundachtransfer.go
- inboundcheckdeposit.go
- inboundfednowtransfer.go
- inboundmailitem.go
- inboundrealtimepaymentstransfer.go
- inboundwiredrawdownrequest.go
- inboundwiretransfer.go
- intrafiaccountenrollment.go
- intrafibalance.go
- intrafiexclusion.go
- lockbox.go
- oauthapplication.go
- oauthconnection.go
- oauthtoken.go
- pendingtransaction.go
- physicalcard.go
- physicalcardprofile.go
- program.go
- realtimedecision.go
- realtimepaymentstransfer.go
- routingnumber.go
- simulationaccountstatement.go
- simulationachtransfer.go
- simulationcardauthentication.go
- simulationcardauthorization.go
- simulationcardauthorizationexpiration.go
- simulationcardbalanceinquiry.go
- simulationcarddispute.go
- simulationcardfuelconfirmation.go
- simulationcardincrement.go
- simulationcardpurchasesupplement.go
- simulationcardrefund.go
- simulationcardreversal.go
- simulationcardsettlement.go
- simulationcardtoken.go
- simulationcheckdeposit.go
- simulationchecktransfer.go
- simulationdigitalwallettokenrequest.go
- simulationentityonboardingsession.go
- simulationexport.go
- simulationinboundachtransfer.go
- simulationinboundcheckdeposit.go
- simulationinboundfednowtransfer.go
- simulationinboundmailitem.go
- simulationinboundrealtimepaymentstransfer.go
- simulationinboundwiredrawdownrequest.go
- simulationinboundwiretransfer.go
- simulationinterestpayment.go
- simulationpendingtransaction.go
- simulationphysicalcard.go
- simulationprogram.go
- simulationrealtimepaymentstransfer.go
- simulationwiredrawdownrequest.go
- simulationwiretransfer.go
- suggest.go
- supplementaldocument.go
- swifttransfer.go
- transaction.go
- version.go
- wiredrawdownrequest.go
- wiretransfer.go