feat: add --pretty flag to bd ready (bd-vjas)

Adds --pretty flag to bd ready for consistency with bd list.
Uses the same displayPrettyList() function to show issues in
a tree format with status/priority symbols.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
beads/crew/wolf
2026-01-01 11:17:31 -08:00
committed by Steve Yegge
parent 743a2d98aa
commit 33cf09ba3b

View File

@@ -41,6 +41,7 @@ This is useful for agents executing molecules to see which steps can run next.`,
issueType, _ := cmd.Flags().GetString("type")
parentID, _ := cmd.Flags().GetString("parent")
molTypeStr, _ := cmd.Flags().GetString("mol-type")
prettyFormat, _ := cmd.Flags().GetBool("pretty")
var molType *types.MolType
if molTypeStr != "" {
mt := types.MolType(molTypeStr)
@@ -147,6 +148,9 @@ This is useful for agents executing molecules to see which steps can run next.`,
}
return
}
if prettyFormat {
displayPrettyList(issues, false)
} else {
fmt.Printf("\n%s Ready work (%d issues with no blockers):\n\n", ui.RenderAccent("📋"), len(issues))
for i, issue := range issues {
fmt.Printf("%d. [%s] [%s] %s: %s\n", i+1,
@@ -161,6 +165,7 @@ This is useful for agents executing molecules to see which steps can run next.`,
}
}
fmt.Println()
}
return
}
// Direct mode
@@ -218,6 +223,9 @@ This is useful for agents executing molecules to see which steps can run next.`,
maybeShowTip(store)
return
}
if prettyFormat {
displayPrettyList(issues, false)
} else {
fmt.Printf("\n%s Ready work (%d issues with no blockers):\n\n", ui.RenderAccent("📋"), len(issues))
for i, issue := range issues {
fmt.Printf("%d. [%s] [%s] %s: %s\n", i+1,
@@ -232,6 +240,7 @@ This is useful for agents executing molecules to see which steps can run next.`,
}
}
fmt.Println()
}
// Show tip after successful ready (direct mode only)
maybeShowTip(store)
@@ -436,6 +445,7 @@ func init() {
readyCmd.Flags().String("mol", "", "Filter to steps within a specific molecule")
readyCmd.Flags().String("parent", "", "Filter to descendants of this bead/epic")
readyCmd.Flags().String("mol-type", "", "Filter by molecule type: swarm, patrol, or work")
readyCmd.Flags().Bool("pretty", false, "Display issues in a tree format with status/priority symbols")
rootCmd.AddCommand(readyCmd)
blockedCmd.Flags().String("parent", "", "Filter to descendants of this bead/epic")
rootCmd.AddCommand(blockedCmd)