Skip to content

Commit

Permalink
output colors
Browse files Browse the repository at this point in the history
  • Loading branch information
octref committed Nov 27, 2024
1 parent 439f414 commit d4e3f67
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/commands/link/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ export default class LinkIndex extends Command {
if (currentBranch !== "main") {
this.log(chalk.red("You must be on the 'main' branch to link your repository."));
this.log("Please switch to the 'main' branch:");
this.log(" > git checkout main");
this.log(` > ${chalk.blue("git checkout main")}`);
this.log("or rename your current branch to 'main'.");
this.log(" > git branch -m main");
this.log(` > ${chalk.blue("git branch -m main")}`);
this.exit(1);
}

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

this.exit(1);
}
Expand Down

0 comments on commit d4e3f67

Please sign in to comment.