fork of hey-api/openapi-ts because I need some additional things
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #3238 from hey-api/fix/ascii-bye-generate

fix: do not show ascii logo on generate command

authored by

Lubos and committed by
GitHub
01f846ee c2cf380d

+12 -4
+5
.changeset/warm-spoons-move.md
··· 1 + --- 2 + '@hey-api/openapi-ts': patch 3 + --- 4 + 5 + **cli**: do not show ascii logo on generate command
+7 -4
packages/openapi-ts/src/utils/cli.ts
··· 40 40 return { lines, maxLineLength }; 41 41 }; 42 42 43 - export function printCliIntro() { 43 + // TODO: show ascii logo only in `--help` and `--version` commands 44 + export function printCliIntro(showLogo: boolean = false): void { 44 45 const packageJson = loadPackageJson(); 45 - const text = asciiToLines(textAscii, { padding: 1 }); 46 - for (const line of text.lines) { 47 - console.log(colors.cyan(line)); 46 + if (showLogo) { 47 + const text = asciiToLines(textAscii, { padding: 1 }); 48 + for (const line of text.lines) { 49 + console.log(colors.cyan(line)); 50 + } 48 51 } 49 52 console.log(colors.gray(`${packageJson.name} v${packageJson.version}`)); 50 53 console.log('');