feat(list): add --all flag to list commands for cross-project listing#6
Open
tupe12334 wants to merge 1 commit into
Open
feat(list): add --all flag to list commands for cross-project listing#6tupe12334 wants to merge 1 commit into
tupe12334 wants to merge 1 commit into
Conversation
Add -a/--all flag to list commands (issues, docs, prs, users) that enables listing entities across all tracked projects. This is particularly useful when users are not in a centy-initialized folder but want to check across all projects. Features: - Results grouped by project name in human-readable output - JSON output includes project context (projectName, projectPath) - Individual project errors are gracefully handled and don't fail the entire operation - All existing filters (status, assignee, etc.) work with the --all flag - New utility functions for cross-project operations with comprehensive tests Closes #98 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds a
-a/--allflag to all list commands (issues,docs,prs,users) that enables listing entities across all tracked projects in the organization. This addresses the need for users to check entities across all projects when they are not in a centy-initialized folder.Key Features
-aor--allto list entities from all tracked projectsprojectNameandprojectPathfor each entity--allChanges
Modified files:
src/commands/list/docs.ts- Added--allflag andlistAll()methodsrc/commands/list/issues.ts- Added--allflag andlistAll()methodsrc/commands/list/prs.ts- Added--allflag andlistAll()methodsrc/commands/list/users.ts- Added--allflag andlistAll()methodNew files:
src/utils/list-across-projects.ts- Core utility for cross-project listingsrc/utils/list-across-projects.spec.ts- Tests for cross-project utilitysrc/utils/group-by-project.ts- Helper for grouping entities by projectsrc/utils/group-by-project.spec.ts- Tests for grouping utilityTest Plan
centy list issues --alloutside a centy foldercenty list docs --alland verify grouping by projectcenty list prs --all --jsonand verify project context is includedcenty list users --alland verify all tracked projects are queriedcenty list issues --all --status openpnpm test--allwork as beforeRelated Issue
Closes #98
🤖 Generated with Claude Code