dotnet-run-script icon indicating copy to clipboard operation
dotnet-run-script copied to clipboard

Add the ability to run multiple scripts in series

Open xt0rted opened this issue 3 years ago • 0 comments

This adds the ability to run multiple scripts in a single call via dotnet r script1 script2. They will run serially and the group will exit on the first error hit. The --if-present flag is still supported so not found scripts are skipped, and the built-in env command now supports pre and post scripts (not sure why anyone would want that, but it's supported now).

To get this to work scripts are no longer treated as individual commands, instead they're arguments to the main run-script command. This means they're not shown when you run dotnet r --help but maybe that could be added back somehow.

This lays the ground work for everything talked about in #4. My local spike already has those things working, but they're going to be PRed one at a time.

xt0rted avatar Mar 29 '22 03:03 xt0rted