-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbanner.js
More file actions
34 lines (31 loc) · 2 KB
/
banner.js
File metadata and controls
34 lines (31 loc) · 2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
const figlet = require('figlet');
const chalk = require("chalk");
function displayBanner({version} = {}) {
let banner = 'QTEST-CLI';
try {
banner = figlet.textSync('QTEST-CLI', {
font: 'ANSI Shadow',
horizontalLayout: 'fitted',
verticalLayout: 'fitted'
});
console.log(chalk.cyan(banner));
console.log(chalk.gray('═'.repeat(70)));
if(version) console.log(chalk.white(` 🤖 AI-Powered Test Generation | v${version}`));
console.log(chalk.white(` 🧪 Supporting Jest, Vitest & Mocha`));
console.log(chalk.white(` ⚡ Powered by Cline CLI`));
console.log(chalk.gray('═'.repeat(70)));
console.log();
} catch (error) {
console.log();
console.log(chalk.cyan('╔══════════════════════════════════════════════════════════════╗'));
console.log(chalk.cyan('║') + chalk.white(' ') + chalk.cyan('║'));
console.log(chalk.cyan('║') + chalk.bold.blue(' 🤖 AI TEST GENERATOR 🧪 ') + chalk.cyan('║'));
console.log(chalk.cyan('║') + chalk.white(' ') + chalk.cyan('║'));
console.log(chalk.cyan('║') + chalk.gray(' Automated test generation for JavaScript/TypeScript ') + chalk.cyan('║'));
if(version) console.log(chalk.cyan('║') + chalk.gray(` Version ${version} | Powered by Cline CLI `) + chalk.cyan('║'));
console.log(chalk.cyan('║') + chalk.white(' ') + chalk.cyan('║'));
console.log(chalk.cyan('╚══════════════════════════════════════════════════════════════╝'));
console.log();
}
}
module.exports = {displayBanner}