output

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsPlain

func IsPlain() bool

IsPlain returns true if in plain output mode.

func PrintTable

func PrintTable(headers []string, rows [][]string)

PrintTable prints a formatted table (plain or basic ASCII).

func PrintTablePlain

func PrintTablePlain(headers []string, rows [][]string)

PrintTablePlain prints a pipe-delimited table to stdout.

func StatusPrint

func StatusPrint(message string)

StatusPrint prints a message only in human mode.

Types

type Mode

type Mode string

Mode represents the output format.

const (
	ModeHuman Mode = "human"
	ModePlain Mode = "plain"
)
var CurrentMode Mode = ModeHuman

Global output mode for the current session.

func Resolve

func Resolve(explicit string) Mode

Resolve determines output mode from explicit flag or TTY auto-detection.

Jump to

Keyboard shortcuts

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