mirror of
https://github.com/denoland/deno.git
synced 2024-12-26 00:59:24 -05:00
0434076ea6
Original: bf76484301
10 lines
299 B
TypeScript
10 lines
299 B
TypeScript
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
|
|
const { build, run } = Deno;
|
|
|
|
// Runs a command in cross-platform way
|
|
export function xrun(opts): Deno.Process {
|
|
return run({
|
|
...opts,
|
|
args: build.os === "win" ? ["cmd.exe", "/c", ...opts.args] : opts.args
|
|
});
|
|
}
|