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

0% Statements 0/11
100% Branches 0/0
0% Functions 0/1
0% Lines 0/11

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                           
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.train = void 0;
const flows_1 = require("../lib/flows");
const checks_1 = require("../utils/checks");
const stringUtils_1 = require("../utils/stringUtils");
const train = async ({ resourceName, timeout }) => {
    await (0, checks_1.checkProject)();
    await (0, flows_1.trainFlow)(resourceName, timeout);
    console.log(`\nTraining for ${(0, stringUtils_1.upperFirst)(resourceName)} on Cognigy.AI ended - Enjoy.`);
    return;
};
exports.train = train;