Home / Function/ success() — astro Function Reference

success() — astro Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  b86d0243_a993_d4da_0fc0_3bb9852cc9b4["success()"]
  d28938aa_d420_d4d1_6b36_01f3df03707d["messages.ts"]
  b86d0243_a993_d4da_0fc0_3bb9852cc9b4 -->|defined in| d28938aa_d420_d4d1_6b36_01f3df03707d
  ac3298d6_0c78_5a80_8fb7_ec8acfacd90c["log()"]
  b86d0243_a993_d4da_0fc0_3bb9852cc9b4 -->|calls| ac3298d6_0c78_5a80_8fb7_ec8acfacd90c
  style b86d0243_a993_d4da_0fc0_3bb9852cc9b4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/upgrade/src/messages.ts lines 136–144

export const success = async (prefix: string, text: string) => {
	const length = 10 + prefix.length + text.length;
	if (length > stdout.columns) {
		log(`${' '.repeat(5)} ${color.green('✔')}  ${prefix}`);
		log(`${' '.repeat(9)}${color.dim(text)}`);
	} else {
		log(`${' '.repeat(5)} ${color.green('✔')}  ${prefix} ${color.dim(text)}`);
	}
};

Domain

Subdomains

Calls

Frequently Asked Questions

What does success() do?
success() is a function in the astro codebase, defined in packages/upgrade/src/messages.ts.
Where is success() defined?
success() is defined in packages/upgrade/src/messages.ts at line 136.
What does success() call?
success() calls 1 function(s): log.

Analyze Your Own Codebase

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

Try Supermodel Free