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.26.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.26.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.26.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
¶
- agentv1agent.go
- agentv1chat.go
- agentv1chatfile.go
- agentv1execute.go
- agentv1run.go
- agentv2chat.go
- agentv2chatfile.go
- agentv2execute.go
- agentv2run.go
- applicationv1deployment.go
- applicationv1project.go
- applicationv1workflow.go
- cmd.go
- cmdutil.go
- cmdutil_unix.go
- computev1.go
- computev1environment.go
- computev1instance.go
- computev1instancetype.go
- computev1secret.go
- databasev1.go
- databasev1project.go
- flagoptions.go
- formatv1template.go
- legalv1.go
- llm.go
- llmv1.go
- llmv1chat.go
- mailv1inbox.go
- matterv1.go
- matterv1agenttype.go
- matterv1eventsubscription.go
- matterv1log.go
- matterv1matterparty.go
- matterv1party.go
- matterv1share.go
- matterv1type.go
- matterv1workitem.go
- memoryv1.go
- ocrv1.go
- privilegev1.go
- searchv1.go
- skill.go
- skillcustom.go
- suggest.go
- system.go
- translatev1.go
- usagev1.go
- usagev1subscription.go
- vault.go
- vaulteventsubscription.go
- vaultgraphrag.go
- vaultgroup.go
- vaultmemory.go
- vaultmultipart.go
- vaultobject.go
- version.go
- voiceboostlist.go
- voicestreaming.go
- voicetranscription.go
- voicev1.go
Click to show internal directories.
Click to hide internal directories.