INNER CODE UNIT · TypeScript

execShell

cloudflare/wrangler-action · src/exec.ts:21

export async function execShell(
	command: string,
	{
		silent = false,
		...options
	}: Parameters<typeof childProcessExec>[1] & { silent?: boolean } = {},
) {
	if (!silent) {
		process.stdout.write("[command]" + command + EOL);
	}

	try {
		const promise = childProcessExec(command, {
			...options,
		});

		const { child } = promise;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…