Closed vpeil closed 4 years ago
The blog post is outdated, fixes already have a preprocessing mechanism: https://metacpan.org/pod/Catmandu::Fix#preprocess The command line tools also support this.
@nics can you add an example in the synopsis how this preprocessing/variables is used on the command line. I myself always need to find my way in the docs how to do this
added examples here: https://github.com/LibreCat/Catmandu/blob/dev/lib/Catmandu/Fix.pm
ah great! the example with the preprocess is exactly what I need. Thanks!
No need for this PR then.
Use case:
One has a fix file where one needs to add/change a field, e.g. adding a collection ID manually
This would require either changing the fix file every now and then or to follow the solution from https://librecatproject.wordpress.com/2015/05/20/preprocessing-catmandu-fixes/
Another option would be to use ENV variables:
I find it quite handy, please have a look if this is useful for the rest of you.