You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reconcile the full-OpenAPI-coverage feature with main's #26 (incident
6-char short-id resolution in detail/get + list --nums) and #27 (shell
tab-completion + install.sh auto-setup).
incident.go conflicts resolved to main's design:
- list: keep --nums (#26) plus the eval's "--since→--until window < 31d"
help text.
- get: adopt #26's resolveIncidentArg→List-by-incident_ids body; the
full-coverage branch's /incident/info get is superseded by #26's new
`detail` command (which carries the no-window Info path). All 7
incident short-id tests pass.
postmortem.go / status_page.go (deleted by the coverage branch in favor
of generated commands) kept deleted; #27's registerEnumFlag additions to
them drop with the files — generated post-mortem/status-page commands
cover those ops. completion.go + install.sh + the curated commands'
registerEnumFlag calls retained.
**JSON (`--json`):** Machine-parseable, full data, no truncation.
276
+
**JSON (`--json` / `--output-format json`):** Machine-parseable, full data, no truncation.
276
277
277
278
```bash
278
279
flashduty incident list --json | jq '.[].title'
279
280
```
280
281
282
+
**TOON (`--output-format toon`):** Token-Oriented Object Notation — full data, no truncation, but drops the per-row repeated keys that JSON emits for uniform arrays, so list output costs materially fewer tokens. Preferred for LLM/agent consumption. Not directly `jq`-able; use `--json` when you need to pipe into `jq`.
283
+
284
+
```bash
285
+
flashduty incident list --output-format toon
286
+
```
287
+
281
288
**No truncation (`--no-trunc`):** Table with full field content.
cmd.Flags().Int64Var(&channelID, "channel", 0, "Filter by channel ID")
121
128
cmd.Flags().StringVar(&query, "query", "", "Free-text search across title/labels/content (also resolves a 24-char incident ID or 6-char incident num to a direct lookup)")
129
+
cmd.Flags().StringVar(&nums, "nums", "", "Comma-separated short incident ids (num, the 6-char id shown in the UI) to filter by")
122
130
cmd.Flags().StringVar(&since, "since", "24h", "Start time (duration, date, datetime, or unix timestamp; --since→--until window must be < 31 days)")
0 commit comments