Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.

Commit d4e3f67

Browse files
committed
output colors
1 parent 439f414 commit d4e3f67

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/commands/link/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ export default class LinkIndex extends Command {
123123
if (currentBranch !== "main") {
124124
this.log(chalk.red("You must be on the 'main' branch to link your repository."));
125125
this.log("Please switch to the 'main' branch:");
126-
this.log(" > git checkout main");
126+
this.log(` > ${chalk.blue("git checkout main")}`);
127127
this.log("or rename your current branch to 'main'.");
128-
this.log(" > git branch -m main");
128+
this.log(` > ${chalk.blue("git branch -m main")}`);
129129
this.exit(1);
130130
}
131131

@@ -137,8 +137,8 @@ export default class LinkIndex extends Command {
137137
const projectName = path.basename(gitRoot);
138138
this.log(`Please create a GitHub repository: https://github.com/new?name=${projectName}`);
139139
this.log(`And push your code:`);
140-
this.log(` > git remote add origin <GIT_URL>`);
141-
this.log(` > git push -u origin main`);
140+
this.log(` > ${chalk.blue("git remote add origin <GIT_URL>)")}`);
141+
this.log(` > ${chalk.blue("git push -u origin main")}`);
142142

143143
this.exit(1);
144144
}

0 commit comments

Comments
 (0)