Output Formats


gutenfmt uses JSON as its default output format, but offers other formats.

Use the --output (or -o) parameter to format CLI output. The argument values and types of output are:

JSON string. This setting is the default for non-terminals.

Colorized JSON. This setting is the default for interactive terminals.

ASCII table.

Name and value pairs, separated by equal sign.

Tab-separated name and value pairs (useful for grep, sed, or awk).

YAML, a machine-readable alternative to JSON.

Colorized YAML.