Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multiple formats in the same run #15

Merged
merged 2 commits into from
Oct 16, 2023
Merged

Conversation

bentsherman
Copy link
Member

Close #9

Extends the configuration so that multiple output formats can be specified.

For backwards compatibility, if format is specified then format, file, and overwrite will be used with a deprecation warning.

If no format is specified, an error is thrown rather than using a default.

Example configuration:

prov {
    formats {
        bco {
            file = "${params.outdir}/bco.json"
            overwrite = true
        }
        dag {
            file = "${params.outdir}/dag.html"
            overwrite = true
        }
        legacy {
            file = "${params.outdir}/manifest.json"
            overwrite = true
        }
    }
}

@bentsherman bentsherman requested a review from ewels October 10, 2023 22:38
This was referenced Oct 10, 2023
Copy link
Member

@ewels ewels left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👍🏻

README.md Show resolved Hide resolved
README.md Show resolved Hide resolved
@bentsherman bentsherman merged commit 2e88da8 into master Oct 16, 2023
4 checks passed
@bentsherman bentsherman deleted the 9-multiple-formats branch October 16, 2023 10:59
@stevekm
Copy link
Contributor

stevekm commented Oct 16, 2023

how do I update the version of nf-prov being used in order to get these changes in my pipeline?

@bentsherman
Copy link
Member Author

I'm gonna release 1.2.0 by the end of this week, I'd like to add an RO-crate format first during the hackathon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support multiple formats in the same run
3 participants