mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
Fix spinner behavior in Neon command execution
This commit is contained in:
5
.changeset/big-llamas-see.md
Normal file
5
.changeset/big-llamas-see.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"create-better-t-stack": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fix spinner behavior in Neon command execution
|
||||||
@@ -26,9 +26,9 @@ async function executeNeonCommand(
|
|||||||
commandArgsString,
|
commandArgsString,
|
||||||
);
|
);
|
||||||
|
|
||||||
if (s) s.start(spinnerText);
|
if (spinnerText) s.start(spinnerText);
|
||||||
const result = await execa(fullCommand, { shell: true });
|
const result = await execa(fullCommand, { shell: true });
|
||||||
if (s) s.stop(spinnerText);
|
if (spinnerText) s.stop(pc.green("Completed"));
|
||||||
return result;
|
return result;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (s) s.stop(pc.red(`Failed: ${spinnerText}`));
|
if (s) s.stop(pc.red(`Failed: ${spinnerText}`));
|
||||||
|
|||||||
Reference in New Issue
Block a user