Skip to content

feat: Support showing multiple tasks with maniphest show#178

Merged
holmboe merged 2 commits intomasterfrom
show-multiple-tasks
Mar 30, 2026
Merged

feat: Support showing multiple tasks with maniphest show#178
holmboe merged 2 commits intomasterfrom
show-multiple-tasks

Conversation

@holmboe
Copy link
Copy Markdown
Contributor

@holmboe holmboe commented Mar 30, 2026

Summary

  • phabfive maniphest show T123 T456 (and phabfive T123 T456) now displays multiple tasks
  • Tasks are fetched in a single API call; transactions and relationships are fetched per-task
  • Fixed monogram preprocessor so phabfive T123 T456 is not misinterpreted as a comment

Test plan

  • phabfive maniphest show T3194 — single task still works
  • phabfive maniphest show T3194 T2679 — shows both tasks
  • phabfive T3194 T2679 — monogram shortcut shows both tasks
  • phabfive T3194 "hello" — comment shortcut still works
  • phabfive --format=json maniphest show T3194 T2679 — structured output for multiple tasks

🤖 Generated with Claude Code

Allow `phabfive maniphest show T123 T456` and the monogram shortcut
`phabfive T123 T456` to display multiple tasks at once. Tasks are
fetched in a single API call for efficiency.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@holmboe holmboe force-pushed the show-multiple-tasks branch from f736c79 to 809a815 Compare March 30, 2026 09:23
Previously, --format=json called display_task_json() per task in a loop,
producing concatenated JSON objects with no separator — invalid JSON.
Now all tasks are collected into a JSON array before serialization.

A future --format=jsonl option can provide newline-delimited JSON for
streaming use cases where per-object output is preferred.

Also unifies the display function interface: all format-specific display
functions now accept a list of tasks and handle iteration internally,
rather than requiring the caller to loop.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@holmboe holmboe merged commit 6da230a into master Mar 30, 2026
17 checks passed
@holmboe holmboe deleted the show-multiple-tasks branch March 30, 2026 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant