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

Method _isCmdFile

lib/index.js:1884–1888  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1882 return str.endsWith(end);
1883 }
1884 _isCmdFile() {
1885 const upperToolPath = this.toolPath.toUpperCase();
1886 return (this._endsWith(upperToolPath, '.CMD') ||
1887 this._endsWith(upperToolPath, '.BAT'));
1888 }
1889 _windowsQuoteCmdArg(arg) {
1890 // for .exe, apply the normal quoting rules that libuv applies
1891 if (!this._isCmdFile()) {

Callers 5

_getCommandStringMethod · 0.95
_getSpawnFileNameMethod · 0.95
_getSpawnArgsMethod · 0.95
_windowsQuoteCmdArgMethod · 0.95
_getSpawnOptionsMethod · 0.95

Calls 1

_endsWithMethod · 0.95

Tested by

no test coverage detected