[ci] format
This commit is contained in:
parent
2bdce4c4a0
commit
3ad5a2a287
1 changed files with 11 additions and 8 deletions
|
@ -7,16 +7,19 @@ import { banner, say, welcome } from '../messages.js';
|
||||||
export async function intro(ctx: Pick<Context, 'skipHouston' | 'version' | 'username' | 'fancy'>) {
|
export async function intro(ctx: Pick<Context, 'skipHouston' | 'version' | 'username' | 'fancy'>) {
|
||||||
if (!ctx.skipHouston) {
|
if (!ctx.skipHouston) {
|
||||||
const hat = ctx.fancy ? random(['🎩', '🎩', '👑', '🧢', '🍦']) : undefined;
|
const hat = ctx.fancy ? random(['🎩', '🎩', '👑', '🧢', '🍦']) : undefined;
|
||||||
await say([
|
await say(
|
||||||
[
|
[
|
||||||
'Welcome',
|
[
|
||||||
'to',
|
'Welcome',
|
||||||
label('astro', color.bgGreen, color.black),
|
'to',
|
||||||
(ctx.version ? color.green(`v${ctx.version}`) : '') + ',',
|
label('astro', color.bgGreen, color.black),
|
||||||
`${ctx.username}!`,
|
(ctx.version ? color.green(`v${ctx.version}`) : '') + ',',
|
||||||
|
`${ctx.username}!`,
|
||||||
|
],
|
||||||
|
random(welcome),
|
||||||
],
|
],
|
||||||
random(welcome),
|
{ hat }
|
||||||
], { hat });
|
);
|
||||||
await banner(ctx.version);
|
await banner(ctx.version);
|
||||||
} else {
|
} else {
|
||||||
await banner(ctx.version);
|
await banner(ctx.version);
|
||||||
|
|
Loading…
Reference in a new issue