Closed dsherret closed 1 year ago
Not going to do this. First of all, run()
is not a good name because it returns back a CommandBuilder
, which someone could then call spawn()
on, which is awkward. Most importantly though, people would want to be able to provide arguments to this and escaping them could get tricky. So for that reason, I recommend passing the PathRef
directly to a $
like so:
const ciScript = $.path("./.github/workflows/ci.generate.ts");
await $`${ciScript}`;
This works today.
It would be nice to be able to spawn an executable or script with shebang at a
PathRef
like so: