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

Method init

lib/index.js:8246–8252  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8244const exec = __importStar(__nccwpck_require__(5236));
8245class PowerShellToolRunner {
8246 static init() {
8247 return __awaiter(this, void 0, void 0, function* () {
8248 if (!PowerShellToolRunner.psPath) {
8249 PowerShellToolRunner.psPath = yield io.which("pwsh", true);
8250 }
8251 });
8252 }
8253 static executePowerShellCommand(command_1) {
8254 return __awaiter(this, arguments, void 0, function* (command, options = {}) {
8255 yield PowerShellToolRunner.init();

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected