MCPcopy Index your code
hub / github.com/actions/toolkit / _isCmdFile

Method _isCmdFile

packages/exec/src/toolrunner.ts:137–143  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

135 }
136
137 private _isCmdFile(): boolean {
138 const upperToolPath: string = this.toolPath.toUpperCase()
139 return (
140 this._endsWith(upperToolPath, '.CMD') ||
141 this._endsWith(upperToolPath, '.BAT')
142 )
143 }
144
145 private _windowsQuoteCmdArg(arg: string): string {
146 // for .exe, apply the normal quoting rules that libuv applies

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