import { type Context } from './context'; import { color, label } from '@astrojs/cli-kit'; import { random } from '@astrojs/cli-kit/utils'; import { banner, say, welcome } from '../messages.js'; export async function intro(ctx: Pick) { if (!ctx.skipHouston) { await say([ [ 'Welcome', 'to', label('astro', color.bgGreen, color.black), color.green(`v${ctx.version}`) + ',', `${ctx.username}!`, ], random(welcome), ]); await banner(ctx.version); } else { await banner(ctx.version); } }