MCPcopy Create free account
hub / github.com/Azure/powershell / _getSpawnOptions

Method _getSpawnOptions

lib/index.js:2103–2114  ·  view source on GitHub ↗
(options, toolPath)

Source from the content-addressed store, hash-verified

2101 return result;
2102 }
2103 _getSpawnOptions(options, toolPath) {
2104 options = options || {};
2105 const result = {};
2106 result.cwd = options.cwd;
2107 result.env = options.env;
2108 result['windowsVerbatimArguments'] =
2109 options.windowsVerbatimArguments || this._isCmdFile();
2110 if (options.windowsVerbatimArguments) {
2111 result.argv0 = `"${toolPath}"`;
2112 }
2113 return result;
2114 }
2115 /**
2116 * Exec a tool.
2117 * Output will be streamed to the live console.

Callers 1

execMethod · 0.95

Calls 1

_isCmdFileMethod · 0.95

Tested by

no test coverage detected