18 lines
856 B
Markdown
18 lines
856 B
Markdown
## 1. Model Types
|
|
|
|
- [x] 1.1 Add `StatusSummary`, `BoardSummary`, and `ListSummary` structs to `model/types.go`
|
|
|
|
## 2. Command Implementation
|
|
|
|
- [x] 2.1 Create `cmd/status.go` with the top-level `pcli status` command registered on `rootCmd`
|
|
- [x] 2.2 Implement the command handler: call `ListBoards`, then `GetBoard` per board, aggregate open/closed card counts per list, build `StatusSummary`, and pass to `output.Print`
|
|
|
|
## 3. Output Formatting
|
|
|
|
- [x] 3.1 Add `printStatusTable` function to `output/output.go` rendering the board count header line, per-board sections with LIST/CARDS columns, and closed card counts in parentheses
|
|
- [x] 3.2 Register `StatusSummary` in the `printTable` dispatch logic (both direct and pointer cases)
|
|
|
|
## 4. Verification
|
|
|
|
- [x] 4.1 Build and manually test `pcli status` with `--format json` (default) and `--format table`
|