Files
Steve Cliff b07572fed5 Released v1
2026-02-12 10:37:19 +00:00

856 B

1. Model Types

  • 1.1 Add StatusSummary, BoardSummary, and ListSummary structs to model/types.go

2. Command Implementation

  • 2.1 Create cmd/status.go with the top-level pcli status command registered on rootCmd
  • 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

  • 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
  • 3.2 Register StatusSummary in the printTable dispatch logic (both direct and pointer cases)

4. Verification

  • 4.1 Build and manually test pcli status with --format json (default) and --format table