Skip to content

feat: add --format json alias for --json flag#2638

Open
DreadPirateRobertz wants to merge 1 commit intosteveyegge:mainfrom
DreadPirateRobertz:feat/format-json-alias
Open

feat: add --format json alias for --json flag#2638
DreadPirateRobertz wants to merge 1 commit intosteveyegge:mainfrom
DreadPirateRobertz:feat/format-json-alias

Conversation

@DreadPirateRobertz
Copy link

Summary

  • Adds --format json as a hidden alias for the existing --json flag
  • Users commonly try bd list --format json following conventions from gh, docker, jq
  • The --comment alias for bd close --reason was already added in a prior commit

Test plan

  • bd list --format json produces JSON output
  • bd list --json still works as before
  • bd show <id> --format json produces JSON output

Addresses #2612

🤖 Generated with Claude Code

Users commonly try `bd list --format json` (following conventions
from gh, docker, jq). This adds --format as a hidden alias that
sets jsonOutput=true when the value is "json".

Addresses steveyegge#2612

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Executed-By: gastown/crew/zhora
Rig: gastown
Role: crew
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