Home / Function/ constructor() — astro Function Reference

constructor() — astro Function Reference

Architecture documentation for the constructor() function in cli-clipboard.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  555ff7f1_806c_237a_e51a_038b77b02e46["constructor()"]
  0298f775_eac8_8d68_fb9a_0a62fdf019ad["CliClipboard"]
  555ff7f1_806c_237a_e51a_038b77b02e46 -->|defined in| 0298f775_eac8_8d68_fb9a_0a62fdf019ad
  style 555ff7f1_806c_237a_e51a_038b77b02e46 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/cli/info/infra/cli-clipboard.ts lines 42–57

	constructor({
		operatingSystemProvider,
		commandExecutor,
		logger,
		prompt,
	}: {
		operatingSystemProvider: OperatingSystemProvider;
		commandExecutor: CommandExecutor;
		logger: Logger;
		prompt: Prompt;
	}) {
		this.#operatingSystemProvider = operatingSystemProvider;
		this.#commandExecutor = commandExecutor;
		this.#logger = logger;
		this.#prompt = prompt;
	}

Domain

Subdomains

Frequently Asked Questions

What does constructor() do?
constructor() is a function in the astro codebase, defined in packages/astro/src/cli/info/infra/cli-clipboard.ts.
Where is constructor() defined?
constructor() is defined in packages/astro/src/cli/info/infra/cli-clipboard.ts at line 42.

Analyze Your Own Codebase

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

Try Supermodel Free