Skip to content

Commit

Permalink
chore: allow extension of execa options
Browse files Browse the repository at this point in the history
  • Loading branch information
markthree committed Jun 10, 2023
1 parent dd6764a commit 8b9e370
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ import type { AnyFunction, PM } from "./type.ts"

const which = useThermalFn(_which)

export async function execa(cmd: string[]) {
export async function execa(cmd: string[], options: Deno.CommandOptions = {}) {
const command = await which(cmd.shift()!)

const commander = new Deno.Command(command!, {
args: [...cmd],
stdin: "inherit",
stderr: "inherit",
stdout: "inherit",
...options,
})

let resolved = false
Expand Down

0 comments on commit 8b9e370

Please sign in to comment.