From 5615bdce86c35c389f46b74ee9bf447a5e09f8db Mon Sep 17 00:00:00 2001 From: di-sukharev Date: Thu, 9 Mar 2023 14:02:04 +0800 Subject: [PATCH] * refactor(commit.ts): add stdout to commit function output * fix(commit.ts): fix commit confirmation message to show correct status --- src/commands/commit.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commands/commit.ts b/src/commands/commit.ts index c9ed773..eccd9b3 100644 --- a/src/commands/commit.ts +++ b/src/commands/commit.ts @@ -44,8 +44,9 @@ ${chalk.grey('——————————————————')}` }); if (isCommitConfirmedByUser && !isCancel(isCommitConfirmedByUser)) { - await execa('git', ['commit', '-m', commitMessage]); + const { stdout } = await execa('git', ['commit', '-m', commitMessage]); outro(`${chalk.green('✔')} successfully committed`); + outro(stdout); } else outro(`${chalk.gray('✖')} process cancelled`); };