intro() — astro Function Reference
Architecture documentation for the intro() function in intro.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 1abeed16_2efb_acf7_5ca2_44c84998287f["intro()"] 8f642218_1d5a_b367_100c_5af05d2a8b8d["intro.ts"] 1abeed16_2efb_acf7_5ca2_44c84998287f -->|defined in| 8f642218_1d5a_b367_100c_5af05d2a8b8d style 1abeed16_2efb_acf7_5ca2_44c84998287f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/create-astro/src/actions/intro.ts lines 5–28
export async function intro(
ctx: Pick<Context, 'skipHouston' | 'welcome' | 'hat' | 'tie' | 'version' | 'username' | 'fancy'>,
) {
banner();
if (!ctx.skipHouston) {
const { welcome, hat, tie } = ctx;
await say(
[
[
'Welcome',
'to',
label('astro', color.bgGreen, color.black),
Promise.resolve(ctx.version).then(
(version) => (version ? color.green(`v${version}`) : '') + ',',
),
Promise.resolve(ctx.username).then((username) => `${username}!`),
],
welcome ?? "Let's build something awesome!",
] as string[],
{ clear: true, hat, tie },
);
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does intro() do?
intro() is a function in the astro codebase, defined in packages/create-astro/src/actions/intro.ts.
Where is intro() defined?
intro() is defined in packages/create-astro/src/actions/intro.ts at line 5.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free