cmd

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2026 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "0.4.0" // x-release-please-version

Variables

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

Functions

func ShowJSON added in v0.3.0

func ShowJSON(out *os.File, title string, res gjson.Result, format string, transform string) error

Display JSON to the user in various different formats

func ShowJSONIterator added in v0.4.0

func ShowJSONIterator[T any](out *os.File, title string, iter jsonview.Iterator[T], format string, transform string) error

For an iterator over different value types, display its values to the user in different formats.

Types

type BodyContentType added in v0.3.0

type BodyContentType int
const (
	EmptyBody BodyContentType = iota
	MultipartFormEncoded
	ApplicationJSON
	ApplicationOctetStream
)

Jump to

Keyboard shortcuts

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