Help us shape the future of Go! Take the 2026 Go Developer Survey

cmd

package
v0.13.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2026 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "0.13.6"

Variables

View Source
var (
	Command            *cli.Command
	CommandErrorBuffer bytes.Buffer
)
View Source
var OutputFormats = []string{"auto", "explore", "json", "jsonl", "pretty", "raw", "yaml"}

Functions

func ShowJSON

func ShowJSON(res gjson.Result, opts ShowJSONOpts) error

func ShowJSONIterator

func ShowJSONIterator[T any](iter jsonview.Iterator[T], itemsToDisplay int64, opts ShowJSONOpts) error

func ValidateBaseURL added in v0.3.0

func ValidateBaseURL(value, source string) error

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.3.0

type FilePathValue string

type ShowJSONOpts added in v0.4.0

type ShowJSONOpts struct {
	ExplicitFormat bool
	Format         string
	RawOutput      bool
	Stderr         io.Writer
	Stdout         *os.File
	Title          string
	Transform      string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL