output

package
v1.8.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintBody

func PrintBody(cmd *cobra.Command, cfg *clicfg.Config, body []byte, fields []string)

Prints the response body, taking the output configuration into account. Only the defined fields will be printed in table mode. The full output will be printed in json

func PrintBodyMap

func PrintBodyMap(cmd *cobra.Command, cfg *clicfg.Config, values api.ResponseData, fields []string)

func PrintRawBody added in v1.8.0

func PrintRawBody(cmd *cobra.Command, cfg *clicfg.Config, body []byte, fields []string)

PrintRawBody prints a bare JSON response (no {"data":...} envelope). Use for APIs like the agent API that return unwrapped JSON.

Types

This section is empty.

Jump to

Keyboard shortcuts

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