output

package
v1.203.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsStructured

func IsStructured(f format.Format) bool

IsStructured returns true if the format is structured data (JSON, YAML, CSV, TSV). Note: This function is kept for backward compatibility but is no longer used for routing output. All list output now goes to the data channel (stdout).

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager routes output to data or ui layer based on format.

func New

func New(fmt format.Format) *Manager

New creates an output manager for the specified format.

func (*Manager) Write

func (m *Manager) Write(content string) error

Write routes content to the appropriate output stream. All list output goes to data.Write() (stdout) for pipeability. List output includes JSON, YAML, CSV, TSV, and table formats.

Jump to

Keyboard shortcuts

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