MCPcopy Create free account
hub / github.com/angular/dev-infra / _getSpawnArgs

Method _getSpawnArgs

github-actions/browserstack/set-browserstack-env.js:20146–20159  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

20144 return this.toolPath;
20145 }
20146 _getSpawnArgs(options) {
20147 if (IS_WINDOWS2) {
20148 if (this._isCmdFile()) {
20149 let argline = `/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;
20150 for (const a of this.args) {
20151 argline += " ";
20152 argline += options.windowsVerbatimArguments ? a : this._windowsQuoteCmdArg(a);
20153 }
20154 argline += '"';
20155 return [argline];
20156 }
20157 }
20158 return this.args;
20159 }
20160 _endsWith(str, end) {
20161 return str.endsWith(end);
20162 }

Callers 2

_getCommandStringMethod · 0.45
execMethod · 0.45

Calls 2

_isCmdFileMethod · 0.45
_windowsQuoteCmdArgMethod · 0.45

Tested by

no test coverage detected