matype / stylefmt

stylefmt is a tool that automatically formats stylesheets.
Other
2.1k stars 89 forks source link

Added --list cli option to allow multiple in-place cli inputs #188

Closed magicmark closed 7 years ago

magicmark commented 7 years ago

For CI and pre-commit hooks, it would be useful to be able to pass a list of files to format in-place to the cli.

This PR adds this option to the cli (--list/-l could arguably be better named, lmk!)

More context: https://github.com/pre-commit/pre-commit/issues/394

matype commented 7 years ago

@magicmark Seems nice. BTW what do you trying todo ? :)

magicmark commented 7 years ago

@morishitter Thanks!

As referenced, trying to have this work out the box with pre-commit (and other similar / CI tools that work by passing file lists to stdin), so we can have stylefmt automatically process files just as people are committing, before it hits source control.

Would be super helpful to not have to write a wrapper script around the cli to do this :)

(would also be great to include a hooks.yaml file, but i'll save that for another PR :) )

matype commented 7 years ago

@magicmark So sorry, I'm late. Good stuff!