Hey, is it possible to get the output of `pants fm...
# general
b
Hey, is it possible to get the output of
pants fmt
more machine readable? I would like to get only the modified files as an output, but I couldn't find any cli switch on output format
h
Individual linters may have machine-readable outputs that you can set via option, but there is no generic way to get that list at the Pants level
Shouldn't be hard to add though!
b
For a bit more context: what are you trying to do with the list of modified files?
b
I want to execute this in a pipeline and only add the modified files with
git add
to the changelist. I'm currently using
git add -u
but I want to avoid adding other modified files and specifically target files modified by
pants fmt
👍 1
h
Interesting use case
I'd be fine with a patch to add this