nextflow-io / nf-prov

Apache License 2.0
23 stars 11 forks source link

Add task script to legacy format #28

Closed stevekm closed 5 months ago

stevekm commented 5 months ago

fixes #24

bentsherman commented 5 months ago

I was thinking to wait to do this as part of #16 , but it's a simple change so might as well do it now.

Did you test the change and are you happy with the output?

stevekm commented 5 months ago

It looks OK so far

My only real gripe is that newlines in the Nextflow process script section show up as \n in the JSON, however I looked into it and it seems that JSON does not actually allow for real newlines in string fields, so I think its unavoidable.

if there's any other changes needed I expect we can just do a followup for that later.

thanks

bentsherman commented 5 months ago

indeed, that's what you have to do with JSON, but conversely, if you view the JSON through a tool or GUI rather than directly, the tool will put the newlines back in for you