Skip to content

Commit 71f8e2a

Browse files
committed
remove ascii header
1 parent 4c4813d commit 71f8e2a

5 files changed

Lines changed: 13 additions & 19 deletions

File tree

src/commands/create.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import { input, confirm } from '@inquirer/prompts';
33
import ora from 'ora';
44
import { GitHubService } from '../utils/github';
55
import { DisplayUtils } from '../utils/display';
6-
import { AsciiArt } from '../utils/ascii';
6+
7+
import { HeaderUtils } from '../utils/ascii';
78

89
export function createCreateCommand(): Command {
910
const command = new Command('create');
@@ -20,8 +21,8 @@ export function createCreateCommand(): Command {
2021
description?: string;
2122
private?: boolean;
2223
}) => {
23-
// Show ASCII header
24-
console.log(AsciiArt.getSimpleHeader());
24+
// Show header
25+
console.log(HeaderUtils.getHeader());
2526

2627
try {
2728
// Check for required token

src/commands/evaluate.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import ora from 'ora';
33
import { GitHubService } from '../utils/github';
44
import { RepositoryEvaluator } from '../evaluator';
55
import { DisplayUtils } from '../utils/display';
6-
import { AsciiArt } from '../utils/ascii';
6+
import { HeaderUtils } from '../utils/ascii';
77

88
export function createEvaluateCommand(): Command {
99
const command = new Command('evaluate');
@@ -36,8 +36,8 @@ export function createEvaluateCommand(): Command {
3636

3737
spinner.succeed('Evaluation complete!');
3838

39-
// Show ASCII header
40-
console.log(AsciiArt.getSimpleHeader());
39+
// Show header
40+
console.log(HeaderUtils.getHeader());
4141

4242
// Display results
4343
DisplayUtils.showRepositoryScore(score);
@@ -62,4 +62,4 @@ export function createEvaluateCommand(): Command {
6262
});
6363

6464
return command;
65-
}
65+
}

src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import { Command } from 'commander';
44
import { createEvaluateCommand } from './commands/evaluate';
55
import { createCreateCommand } from './commands/create';
6-
import { AsciiArt } from './utils/ascii';
76
import { IntroUtils } from './utils/intro';
87

98
const program = new Command();

src/utils/ascii.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
11
import chalk from 'chalk';
22

3-
export class AsciiArt {
4-
static getSimpleHeader(): string {
5-
const title = chalk.hex('#667eea').bold('RepoReady');
6-
const subtitle = chalk.gray('🚀 Evaluate & Create Contributor-Ready Repositories');
7-
8-
return `\n ${title}\n ${subtitle}\n`;
9-
}
10-
11-
static getCompactHeader(): string {
3+
export class HeaderUtils {
4+
static getHeader(): string {
125
const title = chalk.hex('#667eea').bold('RepoReady');
136
const subtitle = chalk.gray('🚀 Evaluate & Create Contributor-Ready Repositories');
147

src/utils/intro.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import chalk from 'chalk';
2-
import { AsciiArt } from './ascii';
2+
3+
import { HeaderUtils } from './ascii';
34
import { DisplayUtils } from './display';
45

56
export class IntroUtils {
67
static showWelcome(): void {
78
const welcome = [
8-
AsciiArt.getCompactHeader(),
9+
HeaderUtils.getHeader(),
910

1011
chalk.bold.blue('👋 Welcome to RepoReady!'),
1112
'',

0 commit comments

Comments
 (0)