INNER CODE UNIT · TypeScript

handleCommandOutputParsing

cloudflare/wrangler-action · src/commandOutputParsing.ts:155

export async function handleCommandOutputParsing(
	config: WranglerActionConfig,
	command: string,
	stdOut: string,
) {
	// get first OutputEntry found within wrangler artifact output directory
	const outputEntry = await getOutputEntry(config.WRANGLER_OUTPUT_DIR);

	if (outputEntry === null) {
		// if no outputEntry found, fallback to deprecated stdOut parsing
		handleDeprectatedStdoutParsing(config, command, stdOut);
		return;
	}

	switch (outputEntry.type) {
		case "pages-deploy-detailed":
			await handlePagesDeployOutputEntry(config, outputEntry);
			break;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…