feat(cli): add filters to show files command(#1312)
Problem
Fixes #1312
The show files command lists all bucket paths but cannot be filtered. Passing --bucket or other filter options results in "unknown option" errors, making it difficult to inspect specific subsets of files in large repositories.
Solution
Added three filter options to the show files command, mirroring the run command:
--bucket <bucket>- Filter by bucket type (repeatable)--target-locale <code>- Filter by target locale (repeatable)--file <substr>- Filter by file path pattern (repeatable)
Testing
- All filters work independently
- All filters work in combination
- Repeatable pattern works correctly
- No linter errors
- Backward compatible
Examples
# Single filters
show files --bucket json -y
show files --target-locale es -y
show files --file messages -y
# Combined filters
show files --bucket mdx --target-locale fr --file readme -y
Implementation
Follows the same pattern as the run command in packages/cli/src/cli/cmd/run/plan.ts
correct file filter matching logic
Hey @Pruthvi-Parmar! Just checking in - are you still working on this PR? We noticed there are some comments that may need addressing. If you need more time, no problem! Just let us know. If we don't hear back within a week, we'll close this to keep the repo tidy, but you can always reopen when ready.
Actively working on it.. want anyone from the team to review last changes made inorder to address comments by copilot