pretty

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package pretty draws a command's result in the pretty format, for a person (docs/designs/cli-pretty.md): a view built from the result's shape by the conventions, adjusted by its fields' pretty tags, then drawn for a terminal.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(w io.Writer, v any, width int) error

Render writes v, a command's result, in the pretty format, for a terminal of width (0: not a terminal, so nothing is cut). Colors follow w: on a terminal only, not with NO_COLOR.

Types

This section is empty.

Jump to

Keyboard shortcuts

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