MCPcopy Create free account
hub / github.com/AdbAutoPlayer/AdbAutoPlayer / checkCommandExists

Function checkCommandExists

scripts/pytauri-bootstrap.cjs:20–29  ·  view source on GitHub ↗
(cmd, installHint)

Source from the content-addressed store, hash-verified

18}
19
20function checkCommandExists(cmd, installHint) {
21 try {
22 execSync(`${cmd} --version`, { stdio: "ignore" });
23 console.log(`Found '${cmd}'`);
24 } catch (err) {
25 console.error(`'${cmd}' is not installed.`);
26 console.error(`Hint: ${installHint}`);
27 process.exit(1);
28 }
29}
30
31checkCommandExists("uv", "Install uv: https://github.com/astral-sh/uv");
32

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected