add exec_wrapper function

This commit is contained in:
Nick Fyson 2020-08-21 11:59:11 +01:00
parent bd54c20d3e
commit 2b27c68c84
6 changed files with 86 additions and 3 deletions

3
lib/codeql.js generated
View file

@ -22,6 +22,7 @@ const globalutil = __importStar(require("util"));
const v4_1 = __importDefault(require("uuid/v4"));
const api = __importStar(require("./api-client"));
const defaults = __importStar(require("./defaults.json")); // Referenced from codeql-action-sync-tool!
const exec_wrapper_1 = require("./exec_wrapper");
const util = __importStar(require("./util"));
/**
* Stores the CodeQL object, and is populated by `setupCodeQL` or `getCodeQL`.
@ -298,7 +299,7 @@ function getCodeQLForCmd(cmd) {
]);
},
finalizeDatabase: async function (databasePath) {
await exec.exec(cmd, [
await exec_wrapper_1.exec_wrapper(cmd, [
'database',
'finalize',
...getExtraOptionsFromEnv(['database', 'finalize']),