Discover Packages
github.com/jantijn/spotify-cli
internal
output
package
Version:
v0.1.1
Opens a new window with list of versions in this module.
Published: Jul 26, 2026
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package output renders results for humans or for machines.
IsTTY reports whether w is an interactive terminal. Callers use it to decide
on colour, padding and progress — never on what the data itself says.
JSON writes v as indented JSON with a trailing newline.
Table writes rows aligned for a terminal, or tab-separated when piped so that
cut/awk see single tabs instead of runs of padding spaces.
Truncate shortens s to at most n display columns, marking the cut with an
ellipsis. Track and playlist names are long enough to wrap a terminal, which
turns a table back into a wall of text.
Format selects the rendering of command results.
const (
FormatTable Format = "table"
FormatJSON Format = "json"
)
ParseFormat validates a --format value.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.