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

Method _getSpawnArgs

lib/index.js:1865–1880  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

1863 return this.toolPath;
1864 }
1865 _getSpawnArgs(options) {
1866 if (IS_WINDOWS) {
1867 if (this._isCmdFile()) {
1868 let argline = `/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;
1869 for (const a of this.args) {
1870 argline += ' ';
1871 argline += options.windowsVerbatimArguments
1872 ? a
1873 : this._windowsQuoteCmdArg(a);
1874 }
1875 argline += '"';
1876 return [argline];
1877 }
1878 }
1879 return this.args;
1880 }
1881 _endsWith(str, end) {
1882 return str.endsWith(end);
1883 }

Callers 2

_getCommandStringMethod · 0.95
execMethod · 0.95

Calls 2

_isCmdFileMethod · 0.95
_windowsQuoteCmdArgMethod · 0.95

Tested by

no test coverage detected