MCPcopy Index your code
hub / github.com/nodejs/node / run_command

Function run_command

deps/libffi/generate-configure-headers.py:31–39  ·  view source on GitHub ↗

Run a command and return success status.

(cmd)

Source from the content-addressed store, hash-verified

29 return f"{arch_name}-pc-{os_name_mapped}"
30
31def run_command(cmd):
32 """Run a command and return success status."""
33 try:
34 subprocess.run(cmd, check=True)
35 return True
36 except subprocess.CalledProcessError as e:
37 print(f"Error running command: {' '.join(cmd)}", file=sys.stderr)
38 print(f"Error: {e}", file=sys.stderr)
39 return False
40
41def generate_headers(output_dir, target_arch, os_name, libffi_dir):
42 """Generate libffi headers using configure script."""

Callers 1

generate_headersFunction · 0.85

Calls 3

printFunction · 0.50
runMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…