Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
natemoo-re authored and astrobot-houston committed Aug 25, 2023
1 parent 2bdce4c commit 3ad5a2a
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions packages/create-astro/src/actions/intro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,19 @@ import { banner, say, welcome } from '../messages.js';
export async function intro(ctx: Pick<Context, 'skipHouston' | 'version' | 'username' | 'fancy'>) {
if (!ctx.skipHouston) {
const hat = ctx.fancy ? random(['🎩', '🎩', '👑', '🧢', '🍦']) : undefined;
await say([
await say(
[
'Welcome',
'to',
label('astro', color.bgGreen, color.black),
(ctx.version ? color.green(`v${ctx.version}`) : '') + ',',
`${ctx.username}!`,
[
'Welcome',
'to',
label('astro', color.bgGreen, color.black),
(ctx.version ? color.green(`v${ctx.version}`) : '') + ',',
`${ctx.username}!`,
],
random(welcome),
],
random(welcome),
], { hat });
{ hat }
);
await banner(ctx.version);
} else {
await banner(ctx.version);
Expand Down

0 comments on commit 3ad5a2a

Please sign in to comment.