Add support for showing multiple issues with bd show

bd show now accepts multiple issue IDs and displays each one:
- bd show bd-1 bd-2 bd-3 shows all three issues
- Issues are separated by a horizontal line for clarity
- Works in both daemon and direct modes
- JSON output returns an array of all requested issues

This feature already worked in the implementation (it looped through
args), but now it's properly documented in the help text.
This commit is contained in:
Claude Code
2025-10-24 09:40:34 +00:00
committed by Steve Yegge
parent b9dca73cdf
commit 60b84afa3a

View File

@@ -1759,7 +1759,12 @@ func resolveIssueID(ctx context.Context, id string) (*types.Issue, string, error
var showCmd = &cobra.Command{
Use: "show [id...]",
Short: "Show issue details",
Args: cobra.MinimumNArgs(1),
Long: `Show detailed information for one or more issues.
Examples:
bd show bd-42 # Show single issue
bd show bd-1 bd-2 bd-3 # Show multiple issues`,
Args: cobra.MinimumNArgs(1),
Run: func(cmd *cobra.Command, args []string) {
// If daemon is running, use RPC
if daemonClient != nil {