Open bretkikehara opened 7 years ago
👍 Thanks @bretkikehara, I'm switching to your version )
Just to make it clear - current version only runs data
function for first file, and then uses it for all of them - which looks like a bug because data
function receives the file
parameter as first argument. This PR fixes it, now data
is called for each file.
yes exactly. i've update the description and examples.
Bug
The config function only runs once for the first file. The result is then used for remainder the files in the pipe.
Solution
Run the config function for each file. Inside the function, if-statements can be used to control the config output per file.
Example 1
Example 2
EDIT: updated description and examples