updateEvidenceConfig = async (cfg) => {
	const configPath = await findFile('evidence.config.yaml').catch(() =>
		path.join(process.cwd(), 'evidence.config.yaml')
	);

	const comments = [
		'This file was automatically generated by the Evidence command line',
		'To easily configure Evidence, use `npx evidence config`'
	];

	const content = `# ${comments.join('\n# ')}\n\n${yaml.stringify(cfg)}`;

	await fs.writeFile(configPath, content);

	return configPath;
}
@param {import("zod").infer<typeof import("./schemas/config.schema.js").EvidenceConfigSchema>} cfg
@returns {Promise<string>}