PrintJSONCompact prints any value as compact (no-indent) JSON — a single line plus trailing newline. Preferred for machine-consumed payloads where pretty-print whitespace is pure overhead (e.g. `pad bootstrap`, whose canonical consumer is the /pad agent skill). Human inspection has the --format mark
(v interface{})
| 518 | // canonical consumer is the /pad agent skill). Human inspection has the |
| 519 | // --format markdown variant. |
| 520 | func PrintJSONCompact(v interface{}) error { |
| 521 | enc := json.NewEncoder(os.Stdout) |
| 522 | return enc.Encode(v) |
| 523 | } |
| 524 | |
| 525 | // PrintItemMeta prints item metadata header with colors. |
| 526 | func PrintItemMeta(item *models.Item) { |
no test coverage detected