UNPKG

flagpole

Version:

Simple and fast DOM integration, headless or headful browser, and REST API testing framework.

44 lines 2.7 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const flagpoleexecutionoptions_1 = require("../flagpoleexecutionoptions"); const ansiAlign = require('ansi-align'); function printHeader() { if (flagpoleexecutionoptions_1.FlagpoleExecution.opts.quietMode) { return; } console.log('\u001b[0m \u001b[37m^\u001b[0m '); console.log('\u001b[0m \u001b[47m \u001b[0m \u001b[44m\u001b[37m ****** \u001b[41m \u001b[0m\u001b[37;1m\u001b[1m F L A G P O L E J S'); console.log('\u001b[0m \u001b[47m \u001b[0m \u001b[44m\u001b[37m ****** \u001b[47m \u001b[0m'); console.log('\u001b[0m \u001b[47m \u001b[0m \u001b[44m\u001b[37m ****** \u001b[41m \u001b[0m\u001b[238m Version 2.0'); console.log('\u001b[0m \u001b[47m \u001b[0m \u001b[47m \u001b[0m'); console.log('\u001b[0m \u001b[47m \u001b[0m \u001b[41m \u001b[0m'); console.log('\u001b[0m \u001b[47m \u001b[0m '); } exports.printHeader = printHeader; function printOldHeader() { if (flagpoleexecutionoptions_1.FlagpoleExecution.opts.quietMode) { return; } console.log("\x1b[32m", ` \x1b[31m $$$$$$$$\\ $$\\ $$\\ \x1b[31m $$ _____|$$ | $$ | \x1b[31m $$ | $$ | $$$$$$\\ $$$$$$\\ $$$$$$\\ $$$$$$\\ $$ | $$$$$$\\ \x1b[31m $$$$$\\ $$ | \\____$$\\ $$ __$$\\ $$ __$$\\ $$ __$$\\ $$ |$$ __$$\\ \x1b[37m $$ __| $$ | $$$$$$$ |$$ / $$ |$$ / $$ |$$ / $$ |$$ |$$$$$$$$ | \x1b[37m $$ | $$ |$$ __$$ |$$ | $$ |$$ | $$ |$$ | $$ |$$ |$$ ____| \x1b[37m $$ | $$ |\\$$$$$$$ |\\$$$$$$$ |$$$$$$$ |\\$$$$$$ |$$ |\\$$$$$$$\\ \x1b[34m \\__| \\__| \\_______| \\____$$ |$$ ____/ \\______/ \\__| \\_______| \x1b[34m $$\\ $$ |$$ | \x1b[34m \\$$$$$$ |$$ | \x1b[34m \\______/ \\__|`, "\x1b[0m", "\n"); } exports.printOldHeader = printOldHeader; function printSubheader(heading) { if (!flagpoleexecutionoptions_1.FlagpoleExecution.opts.quietMode) { console.log(ansiAlign.center("\x1b[31m===========================================================================\x1b[0m\n" + "\x1b[0m" + heading + "\n" + "\x1b[31m===========================================================================\x1b[0m\n")); } } exports.printSubheader = printSubheader; //# sourceMappingURL=cli-helper.js.map