Closed naxoc closed 10 months ago
Thanks @eddiesshop ! I cleaned it up a tiny bit more and I'm merging it now. I can come back to the whitespace issue. It will only ever be an issue if we pass args that have a quoted string with whitespace. Something like --site-title="My Site"
or similar would trigger it. I'm not pressed since this is not an actual command.
Inspired by frustration with internet connection cutting out and trying to navigate running scripts with
start
andend
. It's super hard to keep track of what ran and what didn't in that case.This thingy doesn't run anything, but outputs a bunch of commands that can be pasted in a file and then run one by one or in multiple terminals.
How to test
With some command that supports
from
andto
run like this:You need to know how many items you are running (or choose a random number high enough).
If your command doesn't use the
BatchLogic
class, you can pass the name of thefrom
andto
like this:--start-arg-name=index-from --end-arg-name=index-to
If you need to start a ways in you can pass
--begin-at=<some-number>
.You will get an output like this that you can copy paste from:
Todo