You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Additional options for output file collection #134
Right now the only way to specify which files goes to which output are globs, but we had issues with tools where ordinary globs weren't enough to distinguish between different outputs (e.g filenames without "something"). We kinda solved our problem with bash extended globs, but it's not the cleanest solution (we have to run it inside a docker container), and it is not really expected that other implementations will handle them. Adding another option in CommandOutputBinding like "regexp": "<something>" would probably suffice. Finally we could go "full Turing-complete" and add an option like "filter": {expression} that could get list of all files from working dir and return whatever files appropriate for that output.
We add a special case glob: ** that captures the entire contents of the output directory (including subdirectories), then use an expression to do arbitrary filtering.
outputBinding:
glob: **outputEval: | ${ var ret = []; for (var i = 0; i < self.length; i++) { // only capture .txt files if (self[i].path.match(/\.txt$/) { ret.push(self[i]); } } return ret; }
Activity
tetron commentedon Nov 26, 2015
@StarvingMarvin how about this?
We add a special case
glob: **that captures the entire contents of the output directory (including subdirectories), then use an expression to do arbitrary filtering.mr-c commentedon Dec 9, 2015
We should get the major changes in Draft 3 finished first; I am moving this to the Draft 4 milestone.
mr-c commentedon Jun 14, 2016
According to @tetron this will be obsoleted by DirectoryType
Squashed 'v1.1.0-dev1/salad/' changes from 98a5bea..27c20e8