get() — astro Function Reference
Architecture documentation for the get() function in cli-debug-info-provider.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 127a0d56_15dd_ef1b_0d10_bcb23419ac98["get()"] 40d0b18a_b117_e4fa_7678_ae7b5d773d5b["CliDebugInfoProvider"] 127a0d56_15dd_ef1b_0d10_bcb23419ac98 -->|defined in| 40d0b18a_b117_e4fa_7678_ae7b5d773d5b e51ffa62_9faa_14b5_e58e_541ccaba657e["withVersion()"] 127a0d56_15dd_ef1b_0d10_bcb23419ac98 -->|calls| e51ffa62_9faa_14b5_e58e_541ccaba657e style 127a0d56_15dd_ef1b_0d10_bcb23419ac98 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/cli/info/infra/cli-debug-info-provider.ts lines 41–75
async get(): Promise<DebugInfo> {
const debugInfo: DebugInfo = [
['Astro', `v${this.#astroVersionProvider.version}`],
['Node', this.#nodeVersionProvider.version],
['System', this.#operatingSystemProvider.displayName],
['Package Manager', this.#packageManager.name],
['Output', this.#config.output],
];
const viteVersion = await this.#packageManager.getPackageVersion('vite');
if (viteVersion) {
debugInfo.splice(1, 0, ['Vite', viteVersion]);
}
debugInfo.push([
'Adapter',
this.#config.adapter
? withVersion(
this.#config.adapter.name,
await this.#packageManager.getPackageVersion(this.#config.adapter.name),
)
: 'none',
]);
const integrations = await Promise.all(
this.#config.integrations.map(async ({ name }) =>
withVersion(name, await this.#packageManager.getPackageVersion(name)),
),
);
debugInfo.push(['Integrations', integrations.length > 0 ? integrations : 'none']);
return debugInfo;
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does get() do?
get() is a function in the astro codebase, defined in packages/astro/src/cli/info/infra/cli-debug-info-provider.ts.
Where is get() defined?
get() is defined in packages/astro/src/cli/info/infra/cli-debug-info-provider.ts at line 41.
What does get() call?
get() calls 1 function(s): withVersion.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free