All files / Cognigy-CLI/build/commands run.js

0% Statements 0/12
0% Branches 0/2
0% Functions 0/1
0% Lines 0/12

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18                                   
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.run = void 0;
const checks_1 = require("../utils/checks");
const playbooks_1 = require("../lib/playbooks");
const run = async ({ resourceType, playbookFile, options, }) => {
    await (0, checks_1.checkProject)();
    switch (resourceType) {
        case 'playbooks':
            await (0, playbooks_1.runPlaybooks)(playbookFile);
            break;
        default:
            console.log(`Resource type ${resourceType} can't be run.`);
    }
    return;
};
exports.run = run;