lingo.dev icon indicating copy to clipboard operation
lingo.dev copied to clipboard

Add filters to `show files`

Open omsherikar opened this issue 1 month ago • 2 comments

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 on run; mirror here)

omsherikar avatar Oct 29 '25 19:10 omsherikar

Hi @omsherikar! I'd like to work on this issue.

My approach:

  1. Look at the existing run command implementation to understand how these filters work
  2. Add the same filter options to the show files command in packages/cli/src/cli/cmd/show.ts (or similar)
  3. Apply filtering logic before displaying the file list
  4. Add tests to verify the filters work correctly

I can have a PR ready within few days. Could you assign this to me?

Pruthvi-Parmar avatar Oct 29 '25 19:10 Pruthvi-Parmar

Who wants to work on this?

sumitsaurabh927 avatar Nov 03 '25 19:11 sumitsaurabh927

Assigning this one to you @omsherikar , reviewing your PR with the team shortly

maxprilutskiy avatar Nov 10 '25 07:11 maxprilutskiy

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.

Pruthvi-Parmar avatar Nov 10 '25 11:11 Pruthvi-Parmar