856 B
856 B
1. Model Types
- 1.1 Add
StatusSummary,BoardSummary, andListSummarystructs tomodel/types.go
2. Command Implementation
- 2.1 Create
cmd/status.gowith the top-levelpcli statuscommand registered onrootCmd - 2.2 Implement the command handler: call
ListBoards, thenGetBoardper board, aggregate open/closed card counts per list, buildStatusSummary, and pass tooutput.Print
3. Output Formatting
- 3.1 Add
printStatusTablefunction tooutput/output.gorendering the board count header line, per-board sections with LIST/CARDS columns, and closed card counts in parentheses - 3.2 Register
StatusSummaryin theprintTabledispatch logic (both direct and pointer cases)
4. Verification
- 4.1 Build and manually test
pcli statuswith--format json(default) and--format table