Home / Type/ Context Type — astro Architecture

Context Type — astro Architecture

Architecture documentation for the Context type/interface in context.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  0e687960_2db5_e0e3_9162_0b44a39db37f["Context"]
  c681252d_5f25_a22f_ed87_079b092a96de["context.ts"]
  0e687960_2db5_e0e3_9162_0b44a39db37f -->|defined in| c681252d_5f25_a22f_ed87_079b092a96de
  style 0e687960_2db5_e0e3_9162_0b44a39db37f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/create-astro/src/actions/context.ts lines 9–34

export interface Context {
	help: boolean;
	prompt: typeof prompt;
	cwd: string;
	packageManager: string;
	username: Promise<string>;
	version: Promise<string>;
	skipHouston: boolean;
	fancy?: boolean;
	add?: string[];
	dryRun?: boolean;
	yes?: boolean;
	projectName?: string;
	template?: string;
	ref: string;
	install?: boolean;
	git?: boolean;
	typescript?: string;
	stdin?: typeof process.stdin;
	stdout?: typeof process.stdout;
	exit(code: number): never;
	welcome?: string;
	hat?: string;
	tie?: string;
	tasks: Task[];
}

Frequently Asked Questions

What is the Context type?
Context is a type/interface in the astro codebase, defined in packages/create-astro/src/actions/context.ts.
Where is Context defined?
Context is defined in packages/create-astro/src/actions/context.ts at line 9.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free