MCPcopy Create free account
hub / github.com/mkdocstrings/griffe / _shell

Function _shell

scripts/make.py:25–29  ·  view source on GitHub ↗
(cmd: str, *, capture_output: bool = False, **kwargs: Any)

Source from the content-addressed store, hash-verified

23# Helper functions ------------------------------------------------------------
24# -----------------------------------------------------------------------------
25def _shell(cmd: str, *, capture_output: bool = False, **kwargs: Any) -> str | None:
26 if capture_output:
27 return subprocess.check_output(cmd, shell=True, text=True, **kwargs) # noqa: S602
28 subprocess.run(cmd, shell=True, check=True, stderr=subprocess.STDOUT, **kwargs) # noqa: S602
29 return None
30
31
32@contextmanager

Callers 4

_uv_installFunction · 0.85
setupFunction · 0.85
cleanFunction · 0.85
vscodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…