Documentation
¶
Index ¶
- func EntriesCSV(w io.Writer, es []entry.Entry, keys []string) error
- func EntriesJSON(w io.Writer, es []entry.Entry, keys []string) error
- func EntriesTable(w io.Writer, es []entry.Entry, keys []string) error
- func Header(key string) string
- func ParseKeys(s string) ([]string, error)
- func SortEntries(es []entry.Entry, keys []string)
- func WriteTable(w io.Writer, headers []string, rows [][]string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EntriesJSON ¶
EntriesJSON emits one object per entry. The keys in each object appear in the same order as `keys`, mirroring the table/csv column order so the JSON output stays predictable for downstream tooling.
func ParseKeys ¶
ParseKeys validates a comma-separated list of sort keys, deduplicates them, and appends any unspecified keys in the default order so callers always get a full ordering covering every column.
func SortEntries ¶
SortEntries orders entries by the supplied keys, using natural-version comparison on each field. Callers typically sort within a single root so that the glob-argument order is preserved across roots in the final flattened output.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.