* chore(commit.ts): add spinner to indicate git push process
* refactor(commit.ts): change success message to include spinner in `git push` process
This commit is contained in:
@@ -52,8 +52,10 @@ ${chalk.grey('——————————————————')}`
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (isPushConfirmedByUser && !isCancel(isPushConfirmedByUser)) {
|
if (isPushConfirmedByUser && !isCancel(isPushConfirmedByUser)) {
|
||||||
|
const pushSpinner = spinner();
|
||||||
|
pushSpinner.start('Running `git push`');
|
||||||
const { stdout } = await execa('git', ['push']);
|
const { stdout } = await execa('git', ['push']);
|
||||||
outro(`${chalk.green('✔')} successfully pushed all commits`);
|
pushSpinner.stop(`${chalk.green('✔')} successfully pushed all commits`);
|
||||||
outro(stdout);
|
outro(stdout);
|
||||||
}
|
}
|
||||||
} else outro(`${chalk.gray('✖')} process cancelled`);
|
} else outro(`${chalk.gray('✖')} process cancelled`);
|
||||||
|
|||||||
Reference in New Issue
Block a user