MCPcopy Create free account
hub / github.com/Snapchat/Valdi / checkCommandExists

Function checkCommandExists

npm_modules/cli/src/utils/cliUtils.ts:105–112  ·  view source on GitHub ↗
(command: string)

Source from the content-addressed store, hash-verified

103}
104
105export function checkCommandExists(command: string): boolean {
106 try {
107 execSync(`command -v ${command}`, { stdio: 'ignore' });
108 return true;
109 } catch {
110 return false;
111 }
112}

Callers 10

detectLinuxDistroFunction · 0.90
getPackageManagerFunction · 0.90
getBazelCliFunction · 0.90
checkJavaInstallationMethod · 0.90
checkEditorExtensionsMethod · 0.90
checkSingleDependencyMethod · 0.90
macOSSetupFunction · 0.90
linuxSetupFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected