Closed ivkos closed 4 years ago
Hi @ivkos,
i can add this as features request but i didn't have the time to implement it soon - maybe in the future..
Thanks Andi. I'll see if I can help with this if I find some spare time.
i've just added a wrapper to invoke the glob expansion for the upload command
the expansion code is still empty (passthrough)
v3.2.0 is out including generic glob resolver
nodemcu-tool upload --minify --compile src/init.lua src/my_script.lua
So, in short, the issue is that executing the same command in bash works fine, and fails in Windows shells due to the lack of glob expansion. This makes it hard to set up some useful scripts in my
package.json
that work on all platforms.A possible solution would be parsing the CLI arguments and checking with is-glob whether the arg looks like a glob, then resolving it with glob into a list of files.