MCPcopy Create free account
hub / github.com/Azure/static-web-apps-cli / getInstalledSystemCoreToolsVersion

Function getInstalledSystemCoreToolsVersion

src/core/func-core-tools.ts:80–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78}
79
80async function getInstalledSystemCoreToolsVersion(): Promise<number | undefined> {
81 if (installedSystemCoreToolsVersionIsCached) {
82 return cachedSystemCoreToolsVersion;
83 }
84
85 try {
86 const { stdout: version } = await promisify(exec)(`${DEFAULT_FUNC_BINARY} --version`);
87 return getMajorVersion(version);
88 } catch {
89 return undefined;
90 }
91}
92
93function getDownloadedCoreToolsVersion(targetVersion: number): string | undefined {
94 const folder = getCoreToolsFolder(targetVersion);

Callers 1

getCoreToolsBinaryFunction · 0.85

Calls 1

getMajorVersionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…