Skip to content
This repository has been archived by the owner on Jun 10, 2021. It is now read-only.

Ignore binary files automatically #109

Open
raviqqe opened this issue May 16, 2019 · 1 comment
Open

Ignore binary files automatically #109

raviqqe opened this issue May 16, 2019 · 1 comment

Comments

@raviqqe
Copy link

raviqqe commented May 16, 2019

Is it possible to add an option to ignore binary files automatically rather than exiting?

For example,

codemod --ignore-binary foo bar

Currently, the only way to avoid stopping replacement at binary files is to specify all file extensions known to be text files although it's a kind of tedious. For example, I often do this:

codemod --extension ts,md,js,tsx,jsx,txt,json foo bar

This feature might be related to #105.

@fabiomcosta
Copy link

I THINK this commit fixes this issue for python3, but I'm not sure if there has been a new release after that: d9f2c24

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants