MCPcopy Index your code
hub / github.com/archlinux/archinstall / run

Function run

archinstall/lib/command.py:334–346  ·  view source on GitHub ↗
(
	cmd: list[str],
	input_data: bytes | None = None,
)

Source from the content-addressed store, hash-verified

332
333
334def run(
335 cmd: list[str],
336 input_data: bytes | None = None,
337) -> subprocess.CompletedProcess[bytes]:
338 _cmd_history(cmd)
339
340 return subprocess.run(
341 cmd,
342 input=input_data,
343 stdout=subprocess.PIPE,
344 stderr=subprocess.STDOUT,
345 check=True,
346 )
347
348
349def locate_binary(name: str) -> str:

Callers 6

_create_userMethod · 0.90
set_user_passwordMethod · 0.90
user_set_shellMethod · 0.90
chownMethod · 0.90
encryptMethod · 0.90
unlockMethod · 0.90

Calls 2

_cmd_historyFunction · 0.85
runMethod · 0.45

Tested by

no test coverage detected