pawamoy / failprint

Run a command, print its output only if it fails.
https://pawamoy.github.io/failprint
ISC License
7 stars 0 forks source link

Allow running Python tool in the same process #3

Closed pawamoy closed 1 year ago

pawamoy commented 4 years ago

Is your feature request related to a problem? Please describe. Spawning Python processes is expensive.

Describe the solution you'd like When executing a Python tool, the user could tell failprint what to import and run, for example:

failprint --python-callable=flake8.main.cli.main -- flake8 src
pawamoy commented 1 year ago

failprint is mostly used by duty, and since it allows running callable, this is not really needed here.