MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / run

Function run

Scripts/Developer Base/Mobile Desktop.py:610–615  ·  view source on GitHub ↗
(cmd: List[str], check: bool=True, capture: bool=False)

Source from the content-addressed store, hash-verified

608 input(tr(cfg, "press_enter"))
609
610def run(cmd: List[str], check: bool=True, capture: bool=False) -> subprocess.CompletedProcess:
611 env = os.environ.copy()
612 env.setdefault("TERM", "dumb")
613 if capture:
614 return subprocess.run(cmd, text=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, check=check, env=env)
615 return subprocess.run(cmd, check=check, env=env)
616
617def sh_quote(s: str) -> str:
618 return "'" + s.replace("'", "'\"'\"'") + "'"

Callers 15

ensure_termux_depsFunction · 0.70
get_available_distrosFunction · 0.70
apply_xstartupFunction · 0.70
detect_vnc_commandFunction · 0.70
install_desktop_and_vncFunction · 0.70
set_vnc_passwordFunction · 0.70
termux_wake_lockFunction · 0.70
vnc_list_rawFunction · 0.70
vnc_startFunction · 0.70
vnc_stopFunction · 0.70
vnc_kill_allFunction · 0.70

Calls 1

runMethod · 0.45

Tested by

no test coverage detected