something like this: svgo *.svg ;-)
you can already use --folder ;)
Right! but what if I would select just some files? maybe it can be resolved allowing more -i, like this: svgo -i add_vc_off.svg -i add_vc_on.svg?
ok, i understand you :) and will try to do something in this direction soon.
;-) oh, congratulations for the great tool! It's very useful, I couldn't take Illustrator verbosity anymore!
Is recursive folders an option? Something glob-ish like svgo -f img\svg\**\*.svg?
Looking forward to this as well.
It's a major change, so it would likely be in a brand new svgo version. Unfortunately, it will not be soon.
BTW, for recursive stuff you can just do;
find . -name "*.svg" -type f -exec svgo '{}' \;
Would be great if it was built in though :)
For copying over the svg files first we ended up an extended version using this in npm scripts.
"optimizeSvg": "cp -R path/to/svg path/to/optimized/svg && find path/to/optimized/svg -name '*.svg' -type f -exec svgo {} \\;",
Just to share another solution. :)
Similarly, support for multiple input folders would be great:
✗ $(npm bin)/svgo --folder=addon/webextension/icons --folder=static/img -q
Unknown option: --folder
It works great with a single --folder argument, but really dislikes me trying to pass multiple folders.
According to docs multiple files already supported.
https://github.com/svg/svgo#cli
Most helpful comment
Is recursive folders an option? Something glob-ish like
svgo -f img\svg\**\*.svg?