Skip to content

Feature request: pass file list through stdin #707

@dpc

Description

@dpc

I have a long list of files (newline or \0 separated) to run through typos, and I don't see a good way to pass them other than a bash loop executing typos one by one (which is a waste of time).

Passing like:

typos $files

have issues around globbing and command line argument limit, and can't handle \0.

Would be nice is if I could:

echo "$files" | typos --stdin-paths   # for newline separated paths
echo "$files0" | typos --stdin-paths0 # for zero-separated paths

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions