Skip to content

Commit

Permalink
fix(commit.ts): improve readability of git push command output in pus…
Browse files Browse the repository at this point in the history
…hSpinner

The commit.ts file has been modified to improve the readability of the output displayed in the pushSpinner. The git push command now includes the remote name in a highlighted blue color, making it easier to identify which remote is being pushed to. This change enhances the user experience by providing clearer information during the push process.
  • Loading branch information
SHSharkar committed Nov 25, 2023
1 parent 8f9d9a6 commit a8f9337
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/commands/commit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,11 @@ ${chalk.grey('——————————————————————
if (isPushConfirmedByUser && !isCancel(isPushConfirmedByUser)) {
const pushSpinner = spinner();

pushSpinner.start(`${chalk.black.bold.bgBlue(` INFO `)} Running 'git push ${remotes[0]}...'`);
pushSpinner.start(
`${chalk.black.bold.bgBlue(` INFO `)} Running git push ${chalk.black.bold.bgBlue(
` ${remotes[0]} `,
)}`,
);

const { stdout } = await execa('git', ['push', '--verbose', remotes[0]]);

Expand All @@ -109,7 +113,11 @@ ${chalk.grey('——————————————————————
if (!isCancel(selectedRemote)) {
const pushSpinner = spinner();

pushSpinner.start(`${chalk.black.bold.bgBlue(` INFO `)} Running 'git push ${selectedRemote}...'`);
pushSpinner.start(
`${chalk.black.bold.bgBlue(` INFO `)} Running git push ${chalk.black.bold.bgBlue(
` ${selectedRemote} `,
)}`,
);

const { stdout } = await execa('git', ['push', selectedRemote]);

Expand Down

0 comments on commit a8f9337

Please sign in to comment.