MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / buildDefaultCheckCommand

Function buildDefaultCheckCommand

src/settings/lspSettings.js:79–91  ·  view source on GitHub ↗
(binaryCommand, installer)

Source from the content-addressed store, hash-verified

77}
78
79function buildDefaultCheckCommand(binaryCommand, installer) {
80 const executable = String(
81 installer?.binaryPath || installer?.executable || binaryCommand || "",
82 ).trim();
83 if (!executable) return "";
84 if (installer?.kind === "manual" && installer?.binaryPath) {
85 return `test -x ${quoteArg(installer.binaryPath)}`;
86 }
87 if (executable.includes("/")) {
88 return `test -x ${quoteArg(executable)}`;
89 }
90 return `which ${quoteArg(executable)}`;
91}
92
93async function promptInstaller(binaryCommand) {
94 const method = await select(

Callers 1

callbackFunction · 0.85

Calls 2

quoteArgFunction · 0.90
StringInterface · 0.85

Tested by

no test coverage detected