MCPcopy
hub / github.com/ActivityWatch/activitywatch / run

Function run

scripts/build_changelog.py:166–173  ·  view source on GitHub ↗
(cmd, cwd=".")

Source from the content-addressed store, hash-verified

164
165
166def run(cmd, cwd=".") -> str:
167 logger.debug(f"Running in {cwd}: {cmd}")
168 p = _run(shlex.split(cmd), stdout=PIPE, stderr=STDOUT, encoding="utf8", cwd=cwd)
169 if p.returncode != 0:
170 print(p.stdout)
171 print(p.stderr)
172 raise Exception
173 return p.stdout
174
175
176def pr_linkify(prid: str, org: str, repo: str) -> str:

Callers 2

mainFunction · 0.85
summary_repoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected