blob: abbf5a993610c504ac5d1b8e81f6fa2e79fdd346 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// 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
});
}
export const executableSuffix = build.os === "win" ? ".exe" : "";
|