Add filters to `show files`
Problem
show files lists all bucket paths but cannot be filtered. Passing --bucket errors as unknown option.
Repro
cd packages/cli
node ./bin/cli.mjs show files -y # Lists everything
node ./bin/cli.mjs show files --bucket json -y # error: unknown option '--bucket'
Why this matters Large repos need targeted inspection (by bucket/locale/path). Lack of filters makes the command noisy and slower to use.
Proposal
Implement filters (mirror run):
--bucket <name>repeatable--target-locale <code>repeatable--file <substr>(already exists onrun; mirror here)
Hi @omsherikar! I'd like to work on this issue.
My approach:
- Look at the existing
runcommand implementation to understand how these filters work - Add the same filter options to the
show filescommand inpackages/cli/src/cli/cmd/show.ts(or similar) - Apply filtering logic before displaying the file list
- Add tests to verify the filters work correctly
I can have a PR ready within few days. Could you assign this to me?
Who wants to work on this?
Assigning this one to you @omsherikar , reviewing your PR with the team shortly
Hi @maxprilutskiy, I’d really like to work on this issue if it’s still available. I’ve already explored how similar filters are implemented in the run command, and I can start working on extending the show files command with --bucket, --target-locale, and --file filters. Please let me know if I can take this up.