Documentation
¶
Index ¶
- Constants
- Variables
- func ShowJSON(out *os.File, title string, res gjson.Result, format string, transform string) error
- func ShowJSONIterator[T any](stdout *os.File, title string, iter jsonview.Iterator[T], format string, ...) error
- func ValidateBaseURL(value, source string) error
- type BodyContentType
- type FileEmbedStyle
- type FilePathValue
Constants ¶
View Source
const Version = "0.8.0" // x-release-please-version
Variables ¶
View Source
var ( Command *cli.Command CommandErrorBuffer bytes.Buffer )
View Source
var OutputFormats = []string{"auto", "explore", "json", "jsonl", "pretty", "raw", "yaml"}
Functions ¶
func ShowJSONIterator ¶
func ShowJSONIterator[T any](stdout *os.File, title string, iter jsonview.Iterator[T], format string, 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 ¶ added in v0.8.0
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 ¶ added in v0.8.0
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
¶
- cmd.go
- cmdutil.go
- cmdutil_unix.go
- flagoptions.go
- internalbetaeventqueue.go
- suggest.go
- v1addon.go
- v1addonentitlement.go
- v1coupon.go
- v1customer.go
- v1customerintegration.go
- v1customerpaymentmethod.go
- v1customerpromotionalentitlement.go
- v1event.go
- v1eventcredit.go
- v1eventcreditgrant.go
- v1feature.go
- v1plan.go
- v1planentitlement.go
- v1product.go
- v1subscription.go
- v1subscriptionfutureupdate.go
- v1subscriptioninvoice.go
- v1subscriptionusage.go
- v1usage.go
- version.go
Click to show internal directories.
Click to hide internal directories.