MCPcopy
hub / github.com/openai/codex-plugin-cc / run

Function run

tests/helpers.mjs:15–24  ·  view source on GitHub ↗
(command, args, options = {})

Source from the content-addressed store, hash-verified

13}
14
15export 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
26export function initGitRepo(cwd) {
27 run("git", ["init", "-b", "main"], { cwd });

Callers 4

git.test.mjsFile · 0.90
runtime.test.mjsFile · 0.90
initGitRepoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected