MCPcopy Create free account
hub / github.com/LeetCode-OpenSource/vscode-leetcode / usingCmd

Function usingCmd

src/utils/osUtils.ts:8–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6}
7
8export function usingCmd(): boolean {
9 const comSpec: string | undefined = process.env.ComSpec;
10 // 'cmd.exe' is used as a fallback if process.env.ComSpec is unavailable.
11 if (!comSpec) {
12 return true;
13 }
14
15 if (comSpec.indexOf("cmd.exe") > -1) {
16 return true;
17 }
18 return false;
19}

Callers 1

parseTestStringFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected