MCPcopy Index your code
hub / github.com/pre-commit/pre-commit / cmd_output

Function cmd_output

pre_commit/util.py:116–120  ·  view source on GitHub ↗
(*cmd: str, **kwargs: Any)

Source from the content-addressed store, hash-verified

114
115
116def cmd_output(*cmd: str, **kwargs: Any) -> tuple[int, str, str | None]:
117 returncode, stdout_b, stderr_b = cmd_output_b(*cmd, **kwargs)
118 stdout = stdout_b.decode() if stdout_b is not None else None
119 stderr = stderr_b.decode() if stderr_b is not None else None
120 return returncode, stdout, stderr
121
122
123if sys.platform != 'win32': # pragma: win32 no cover

Callers 15

get_rootFunction · 0.90
get_git_dirFunction · 0.90
get_git_common_dirFunction · 0.90
get_conflicted_filesFunction · 0.90
get_staged_filesFunction · 0.90
intent_to_add_filesFunction · 0.90
get_all_filesFunction · 0.90
get_changed_filesFunction · 0.90
head_revFunction · 0.90
git_pathFunction · 0.90
get_best_candidate_tagFunction · 0.90

Calls 1

cmd_output_bFunction · 0.85