MCPcopy Create free account
hub / github.com/beita6969/ScienceClaw / shouldUseShellForCommand

Function shouldUseShellForCommand

scripts/ui.js:56–62  ·  view source on GitHub ↗
(cmd, platform = process.platform)

Source from the content-addressed store, hash-verified

54}
55
56export function shouldUseShellForCommand(cmd, platform = process.platform) {
57 if (platform !== "win32") {
58 return false;
59 }
60 const extension = path.extname(cmd).toLowerCase();
61 return WINDOWS_SHELL_EXTENSIONS.has(extension);
62}
63
64export function assertSafeWindowsShellArgs(args, platform = process.platform) {
65 if (platform !== "win32") {

Callers 2

ui.test.tsFile · 0.90
createSpawnOptionsFunction · 0.85

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected