UNPKG

astro

Version:

Astro is a modern site builder with web best practices, performance, and DX front-of-mind.

14 lines (13 loc) • 698 B
import { defineCommand } from "../../domain/command.js"; export const infoCommand = defineCommand({ help: { commandName: "astro info", tables: { Flags: [["--help (-h)", "See all available flags."], ["--copy", "Force copy of the output."]] }, description: "Reports useful information about your current Astro environment. Useful for providing information when opening an issue." }, async run({ debugInfoProvider, getDebugInfoFormatter, logger, clipboard }) { const debugInfo = await debugInfoProvider.get(); logger.info("SKIP_FORMAT", getDebugInfoFormatter({ pretty: true }).format(debugInfo)); await clipboard.copy(getDebugInfoFormatter({ pretty: false }).format(debugInfo)); } });