29 lines
1.5 KiB
JavaScript
29 lines
1.5 KiB
JavaScript
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// Licensed under the MIT license.
|
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
});
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.stopProcess = exports.startDetachedProcess = exports.startProcess = void 0;
|
|
const devSettings = require("office-addin-dev-settings");
|
|
function startProcess(commandLine, verbose = false) {
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
yield devSettings.startProcess(commandLine, verbose);
|
|
});
|
|
}
|
|
exports.startProcess = startProcess;
|
|
function startDetachedProcess(commandLine, verbose = false) {
|
|
return devSettings.startDetachedProcess(commandLine, verbose);
|
|
}
|
|
exports.startDetachedProcess = startDetachedProcess;
|
|
function stopProcess(processId) {
|
|
devSettings.stopProcess(processId);
|
|
}
|
|
exports.stopProcess = stopProcess;
|
|
//# sourceMappingURL=process.js.map
|