Ignore binary files automatically
raviqqe opened this issue · comments
Yota Toyama commented
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.
Fabio M. Costa commented
I THINK this commit fixes this issue for python3, but I'm not sure if there has been a new release after that: d9f2c24