Skip to content

Commit

Permalink
Use console.info
Browse files Browse the repository at this point in the history
  • Loading branch information
ascorbic committed Dec 5, 2024
1 parent 18f631e commit 8063bee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/astro/src/cli/info/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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.`,
);
Expand Down Expand Up @@ -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;
}

0 comments on commit 8063bee

Please sign in to comment.