mirror of
https://github.com/paymog/slack-cli.git
synced 2026-09-18 23:43:49 +08:00
ed6ea666d0
CLI list/table commands (channels, messages, users, saved items, user groups) now print a JSON array of objects instead of CSV, so agents can pipe straight to jq. Conversion lives in the CLI output layer (internal/output): tabular commands call emitTable, which parses the handler's CSV into a JSON array (column order preserved, HTML escaping off so Slack <@U>/links/& stay legible). JSON-returning handlers are re-indented; plain-text status lines pass through. --raw still prints the original CSV/text verbatim. pkg/handler is untouched, so the bundled MCP server's output is unchanged and upstream merges stay clean. Values are strings (CSV carries no types); use jq's tonumber when you need numbers.