Skip to content

Batch run over files, directories, and globs #432

@zharinov

Description

@zharinov

run accepts multiple source paths, directories, and globs.

  • Directory walking filters by the query's declared language extensions (from the shebang).
  • It respects .gitignore (via the ignore crate) and runs in parallel.

Output framing:

  • TTY → pretty per-file blocks with headers and match counts.
  • Pipe → NDJSON, one {"file":…,"data":…} per line.
  • --json=pretty|stream|compact overrides the framing.
  • A single piped file keeps today's bare JSON shape.

Exit 0 if any file matched, 1 if none.

Notes

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions