MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / command

Function command

tools/materialize-bench/imported_guest.py:66–72  ·  view source on GitHub ↗
(args, env, cwd=None, log=None)

Source from the content-addressed store, hash-verified

64
65
66def command(args, env, cwd=None, log=None):
67 result = subprocess.run([str(arg) for arg in args], env=env, cwd=cwd, capture_output=True)
68 if log:
69 log.with_suffix('.stdout').write_bytes(result.stdout)
70 log.with_suffix('.stderr').write_bytes(result.stderr)
71 result.check_returncode()
72 return result.stdout
73
74
75def file_bytes(path, mode):

Callers 2

prepareFunction · 0.70
measureFunction · 0.70

Calls 1

runMethod · 0.45

Tested by

no test coverage detected