From 8063bee541d31c6cd815feb0236b604b08becc63 Mon Sep 17 00:00:00 2001 From: Matt Kane Date: Thu, 5 Dec 2024 12:21:18 +0000 Subject: [PATCH] Use console.info --- packages/astro/src/cli/info/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/astro/src/cli/info/index.ts b/packages/astro/src/cli/info/index.ts index 72e4a7929bc4..5f36d477cdda 100644 --- a/packages/astro/src/cli/info/index.ts +++ b/packages/astro/src/cli/info/index.ts @@ -85,7 +85,7 @@ export async function copyToClipboard(text: string, force?: boolean) { if (!command) { console.error(colors.red('\nClipboard command not found!')); - console.log('Please manually copy the text above.'); + console.info('Please manually copy the text above.'); return; } @@ -105,8 +105,8 @@ export async function copyToClipboard(text: string, force?: boolean) { if (result.error) { throw result.error; } - console.log(colors.green('Copied to clipboard!')); - } catch (err) { + console.info(colors.green('Copied to clipboard!')); + } catch { console.error( colors.red(`\nSorry, something went wrong!`) + ` Please copy the text above manually.`, ); @@ -187,7 +187,7 @@ function printRow(label: string, value: string | string[], print: boolean) { } plaintext += '\n'; if (print) { - console.log(richtext); + console.info(richtext); } return plaintext; }