Closed yardenshoham closed 1 year ago
The new
operator does not compose well with other constructs like await
, how about making a wrapper function to eliminate the problem?
function run(...args) {
// could log command here for debug
const cmd = new Deno.Command(...args);
// could log result here for debug
return cmd;
}
See https://github.com/denoland/deno/discussions/9435