id: task-40 title: 'CLI: Board command defaults to view' status: Done assignee:
- '@codex' created_date: '2025-06-10' updated_date: '2025-06-10' labels:
- cli dependencies: []
Description
Make 'backlog board' show the kanban board the same as 'backlog board view'.
Acceptance Criteria
- [x] Running
backlog boardshows the kanban board - [x]
backlog board viewremains functional - [x] Task committed to repository
Implementation Notes
The implementation was completed by modifying the CLI command structure in src/cli.ts:
-
Added direct action handler to board command (line 497): The main
boardCmdnow has an action handler that callshandleBoardView, makingbacklog boarddisplay the kanban board directly. -
Preserved existing view subcommand (line 499): The
board viewsubcommand remains functional and uses the samehandleBoardViewfunction. -
Shared implementation: Both commands use the identical
handleBoardViewfunction with the same options, ensuring consistent behavior. -
Testing: Added test coverage in
src/test/cli.test.tsthat verifiesbacklog boardproduces the same output asbacklog board view.
Key architectural decisions:
- Used the same
handleBoardViewfunction for both commands to avoid code duplication - Preserved the existing
board viewcommand for backward compatibility - Both commands support the same options (
--layout,--vertical) for consistent UX