(command, args, options = {})
| 13 | } |
| 14 | |
| 15 | export function run(command, args, options = {}) { |
| 16 | return spawnSync(command, args, { |
| 17 | cwd: options.cwd, |
| 18 | env: options.env, |
| 19 | encoding: "utf8", |
| 20 | input: options.input, |
| 21 | shell: process.platform === "win32" && !path.isAbsolute(command), |
| 22 | windowsHide: true |
| 23 | }); |
| 24 | } |
| 25 | |
| 26 | export function initGitRepo(cwd) { |
| 27 | run("git", ["init", "-b", "main"], { cwd }); |
no outgoing calls
no test coverage detected