utils.js — astro Source File
Architecture documentation for utils.js, a javascript file in the astro codebase. 0 imports, 4 dependents.
Entity Profile
Dependency Diagram
graph LR dc38b823_10e6_0080_9a8c_08dc7cc3e0eb["utils.js"] 0b08c1a9_5b9d_8107_aabc_12cdb94c6174["create-key.test.js"] 0b08c1a9_5b9d_8107_aabc_12cdb94c6174 --> dc38b823_10e6_0080_9a8c_08dc7cc3e0eb 83dc38d1_df1f_f39d_79ed_a93a0d42bc04["docs.test.js"] 83dc38d1_df1f_f39d_79ed_a93a0d42bc04 --> dc38b823_10e6_0080_9a8c_08dc7cc3e0eb 37485348_ae41_5c30_d524_1889112e3a2c["index.test.js"] 37485348_ae41_5c30_d524_1889112e3a2c --> dc38b823_10e6_0080_9a8c_08dc7cc3e0eb d2404ffb_8d8c_7a4d_ed8e_c7be3b51b00c["info.test.js"] d2404ffb_8d8c_7a4d_ed8e_c7be3b51b00c --> dc38b823_10e6_0080_9a8c_08dc7cc3e0eb style dc38b823_10e6_0080_9a8c_08dc7cc3e0eb fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
// @ts-check
/**
* @import { CommandRunner, HelpDisplay, AstroVersionProvider, OperatingSystemProvider, CommandExecutor, CommandExecutorOptions } from "../../../dist/cli/definitions.js"
* @import { AnyCommand } from "../../../dist/cli/domain/command.js"
* @import { KeyGenerator } from "../../../dist/cli/create-key/definitions.js"
* @import { HelpPayload } from "../../../dist/cli/domain/help-payload.js"
* @import { CloudIdeProvider } from "../../../dist/cli/docs/definitions.js"
* @import { CloudIde } from "../../../dist/cli/docs/domain/cloud-ide.js"
* @import { DebugInfoProvider, Clipboard, PackageManagerUserAgentProvider, Prompt, NodeVersionProvider } from "../../../dist/cli/info/definitions.js"
* @import { DebugInfo } from "../../../dist/cli/info/domain/debug-info.js"
*/
/** @implements {CommandRunner} */
export class PassthroughCommandRunner {
/**
* @template {AnyCommand} T
* @param {T} command
* @param {Parameters<T['run']>} args
*/
run(command, ...args) {
return command.run(...args);
}
}
/** @implements {KeyGenerator} */
export class FakeKeyGenerator {
/** @type {string} */
#key;
/**
* @param {string} key
*/
constructor(key) {
this.#key = key;
}
async generate() {
return this.#key;
}
}
/** @implements {HelpDisplay} */
export class SpyHelpDisplay {
/** @type {boolean} */
#shouldFire;
/** @type {Array<HelpPayload>} */
#payloads = [];
/**
* @param {boolean} shouldFire
*/
constructor(shouldFire) {
this.#shouldFire = shouldFire;
}
shouldFire() {
return this.#shouldFire;
}
// ... (190 more lines)
Domain
Subdomains
Classes
Imported By
Source
Frequently Asked Questions
What does utils.js do?
utils.js is a source file in the astro codebase, written in javascript. It belongs to the IntegrationAdapters domain, SsrAdapters subdomain.
What files import utils.js?
utils.js is imported by 4 file(s): create-key.test.js, docs.test.js, index.test.js, info.test.js.
Where is utils.js in the architecture?
utils.js is located at packages/astro/test/units/cli/utils.js (domain: IntegrationAdapters, subdomain: SsrAdapters, directory: packages/astro/test/units/cli).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free