(options, toolPath)
| 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. |