Open specious opened 7 years ago
Not sure if that would be a sensible change. I'll keep this open for a little while in case anyone wants to take it on or a tonne of 👍 come in.
For anyone else reading: in place should not be default as it's destructive - which against my design principles (ie don't break things unexpectedly).
I am guessing the last example was meant to be
inliner --inplace *.html
...but I also think that it would be a good idea to focus the limited development energy we have in the world on core functionality. This is probably a pretty unusual use case and if you need it in your custom build pipeline, you can use something like:
ls *.html | xargs -n1 -I{} sh -c 'inliner "{}" > "{}.inlined"; mv "{}.inlined" "{}"'
I think I would personally not turn down a well tested PR though, but can't speak for @remy ;)
I think it would be sweet to be able to inline a file in place, like:
Instead of:
That would make it possible to do: