chanzuckerberg / miniwdl

Workflow Description Language developer tools & local runner
MIT License
175 stars 54 forks source link

"dry run" a task (preview command script given dummy inputs) #387

Open komais opened 4 years ago

komais commented 4 years ago

I want to only output command lines in shell script , Is there any way that i can implement this?
Thank you

mlin commented 4 years ago

Hi, I'm afraid I didn't quite follow your question -- would you care to elaborate or show an example perhaps?

komais commented 4 years ago

thank you for your reply . I hope there is a "dry run" mode which means just generate sh script in a directory , instead of running it on the computer .

mlin commented 4 years ago

Generally in WDL, the invocations for a task, and which tasks run at all, can depend on the outputs of prior tasks. So given a workflow and its required inputs, one could generate a "dry run" script for the initial tasks with no dependencies but not (in general) subsequent tasks that use their outputs. I think that would be quite limited in utility, but if you want to discuss the broader objective more I might have another suggestion.