import { Deno } from "https://deno.land/x/ayonli_jsext@v0.9.72/lib.deno.d.ts";
const { Command } = Deno;
Executes the Deno.Command
, waiting for it to finish and
collecting all of its output.
If spawn()
was called, calling this function will collect the remaining
output.
Will throw an error if stdin: "piped"
is set.
If options stdout
or stderr
are not set to "piped"
, accessing the
corresponding field on Deno.CommandOutput
will throw a TypeError
.
Returns
Promise<CommandOutput>