From 5abe5d715d1094d5eb5b1919e960b261fed836c0 Mon Sep 17 00:00:00 2001 From: di-sukharev Date: Fri, 10 Mar 2023 15:24:49 +0800 Subject: [PATCH] * refactor(commit.ts): remove unnecessary blank lines * feat(commit.ts): add spinner to show progress of `git push` command * feat(commit.ts): show success message after successful `git push` command execution --- src/commands/commit.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/commands/commit.ts b/src/commands/commit.ts index ef5caff..84fd457 100644 --- a/src/commands/commit.ts +++ b/src/commands/commit.ts @@ -53,9 +53,11 @@ ${chalk.grey('——————————————————')}` if (isPushConfirmedByUser && !isCancel(isPushConfirmedByUser)) { const pushSpinner = spinner(); + pushSpinner.start('Running `git push`'); const { stdout } = await execa('git', ['push']); pushSpinner.stop(`${chalk.green('✔')} successfully pushed all commits`); + if (stdout) outro(stdout); } } else outro(`${chalk.gray('✖')} process cancelled`);