MCPcopy Create free account
hub / github.com/CommandCodeAI/BaseAI / init

Function init

examples/agents/readme-writer-agent/utils/init.ts:4–16  ·  view source on GitHub ↗
({clear, title, version, tagLine, description})

Source from the content-addressed store, hash-verified

2import clearConsole from 'clear-any-console';
3
4export function init({clear, title, version, tagLine, description}) {
5 clear && clearConsole();
6 const bg = chalk.hex('#6CC644').inverse.bold;
7 const clr = chalk.hex(`#000000`).bold;
8
9 console.log();
10 console.log(
11 `${clr(`${bg(` ${title} `)}`)} v${version} ${chalk.dim(tagLine)}\n${chalk.dim(
12 description,
13 )}`,
14 );
15 console.log();
16}

Callers 1

index.tsFile · 0.90

Calls 1

logMethod · 0.80

Tested by

no test coverage detected