validateEnvVariables method
Fails when any of requiredEnvKeys is missing or blank in vars.
Implementation
void validateEnvVariables(
String client, String file, Map<String, String> vars) {
final missing = requiredEnvKeys
.where((key) => (vars[key] ?? '').trim().isEmpty)
.toList();
if (missing.isNotEmpty) {
throw BuildException(
'Missing required variables in $file for client "$client": ${missing.join(', ')}',
fix: 'Add ${missing.join(', ')} to clients/$client/$file '
'(run "udara_cli doctor --client $client" for a full check).',
);
}
}