MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / dry_commands

Function dry_commands

scripts/sanitizer-coverage-map.py:77–88  ·  view source on GitHub ↗
(target: str, extra: list[str])

Source from the content-addressed store, hash-verified

75
76
77def dry_commands(target: str, extra: list[str]) -> list[list[str]]:
78 res = subprocess.run(["make", "-f", "Makefile.cbm", "-n", "-B", target] + extra,
79 cwd=ROOT, capture_output=True, text=True, check=False)
80 cmds = []
81 for line in res.stdout.replace("\\\n", " ").splitlines():
82 try:
83 argv = shlex.split(line)
84 except ValueError:
85 continue
86 if argv and any(a.endswith(SRC_EXT) for a in argv) and ("-c" in argv or "-o" in argv):
87 cmds.append(argv)
88 return cmds
89
90
91def make_var(name: str) -> list[str]:

Callers 1

cmd_staticFunction · 0.85

Calls 1

runMethod · 0.45

Tested by

no test coverage detected