feat(status): add --project flag for filtering boards by project name

- Implemented the --project flag in the pcli status command to filter boards based on the specified project name.
- Updated the command to resolve project names to IDs using case-insensitive matching.
- Adjusted the totalBoards count in the output to reflect the number of boards matching the project filter.
- Enhanced command help text and README documentation to include usage examples for the new flag.
- Verified functionality through manual testing and ensured default behavior remains unchanged when the flag is omitted.

feat(board): expand GetBoard response to include labels and card associations

- Modified the Board struct to include Labels, CardLabels, and CardMemberships fields.
- Updated the GetBoard method to parse additional fields from the API response.
- Enhanced ListCardsByBoard to include label names for each card based on the enriched board data.
- Ensured backward compatibility by making new fields optional and preserving existing output structure.
This commit is contained in:
Steve Cliff
2026-02-18 21:38:41 +00:00
parent 22d5848e1a
commit 7937266262
17 changed files with 61 additions and 10 deletions
+4 -3
View File
@@ -216,10 +216,11 @@ fi
# Get existing task names to avoid duplicates
EXISTING_TASKS=$(echo "$CARD_DATA" | jq -r '.data.tasks[] | select(.taskListId == "'$TL_ID'") | .name')
# For each task in tasks.md:
# For each task in tasks.md (in order), assign incrementing positions:
# position = (index + 1) * 65536 (i.e. 65536, 131072, 196608, ...)
# - If a task with the same name already exists, update its completion state if needed
# - If no matching task exists, create it
pcli task create --task-list $TL_ID --name "<task description>"
# - If no matching task exists, create it with explicit position
pcli task create --task-list $TL_ID --name "<task description>" --position <pos>
# For tasks already in Planka, update completion state to match tasks.md:
pcli task update <task-id> --completed # if tasks.md shows [x]