Home / Function/ cancelled() — astro Function Reference

cancelled() — astro Function Reference

Architecture documentation for the cancelled() function in messages.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  fbcf4f11_6e17_b4a9_006a_6e6640faf00f["cancelled()"]
  a89de736_d85a_fc8a_68a9_5d9ea54128d5["messages.ts"]
  fbcf4f11_6e17_b4a9_006a_6e6640faf00f -->|defined in| a89de736_d85a_fc8a_68a9_5d9ea54128d5
  style fbcf4f11_6e17_b4a9_006a_6e6640faf00f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/core/messages.ts lines 190–198

export function cancelled(message: string, tip?: string) {
	const badge = bgYellow(black(` cancelled `));
	const headline = yellow(message);
	const footer = tip ? `\n  ▶ ${tip}` : undefined;
	return ['', `${badge} ${headline}`, footer]
		.filter((v) => v !== undefined)
		.map((msg) => `  ${msg}`)
		.join('\n');
}

Domain

Subdomains

Frequently Asked Questions

What does cancelled() do?
cancelled() is a function in the astro codebase, defined in packages/astro/src/core/messages.ts.
Where is cancelled() defined?
cancelled() is defined in packages/astro/src/core/messages.ts at line 190.

Analyze Your Own Codebase

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

Try Supermodel Free