write method
Writes the converted registry record and returns the created file.
Implementation
File write() {
try {
final file = File(path);
file.parent.createSync(recursive: true);
file.writeAsStringSync(converter.convert());
return file;
} on FileSystemException catch (error) {
throw MambaIntegrationException(
'Unable to write Carapace spec to $path: ${error.message}',
);
}
}