UNPKG

@uuv/assistant

Version:

UUV Helper used to improve the life of testers and developers by generating cucumber phrases from the GUI.

48 lines (47 loc) 1.65 kB
#!/usr/bin/env node "use strict"; /** * Software Name : UUV * * SPDX-License-Identifier: MIT * * This software is distributed under the MIT License, * see the "LICENSE" file for more details * * Authors: NJAKO MOLOM Louis Fredice & SERVICAL Stanley * Software description: Make test writing fast, understandable by any human * understanding English or French. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const index_1 = require("./index"); const chalk_1 = __importDefault(require("chalk")); const figlet_1 = __importDefault(require("figlet")); const fs_1 = __importDefault(require("fs")); const conf_json_1 = __importDefault(require("./conf.json")); function printBanner(getCurrentVersion) { console.log(chalk_1.default.blueBright(figlet_1.default.textSync("UUV - Assistant", { font: "Big", horizontalLayout: "default", verticalLayout: "default", width: 80, whitespaceBreak: true }))); console.info(chalk_1.default.blueBright(`Version: ${getCurrentVersion()}\n\n`)); } function getCurrentVersion() { const pJsonStr = fs_1.default.readFileSync(`${__dirname}${conf_json_1.default.packageJson}`, { encoding: "utf8", flag: "r" }); return JSON.parse(pJsonStr).version; } function main() { console.log("UUV Assistant starting..."); printBanner(getCurrentVersion); new index_1.UuvAssistant().start().then(() => { console.log(chalk_1.default.yellow("UUV Assistant started")); }); } main();