From d4e3f67433504cfce3dd49c0b84025e6ec2a0764 Mon Sep 17 00:00:00 2001 From: Pine Date: Tue, 26 Nov 2024 18:26:18 -0700 Subject: [PATCH] output colors --- src/commands/link/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/commands/link/index.ts b/src/commands/link/index.ts index fc5c009..89b30a4 100644 --- a/src/commands/link/index.ts +++ b/src/commands/link/index.ts @@ -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); } @@ -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 `); - this.log(` > git push -u origin main`); + this.log(` > ${chalk.blue("git remote add origin )")}`); + this.log(` > ${chalk.blue("git push -u origin main")}`); this.exit(1); }