Skip to content

Add -print-output option to print workflow outputs JSON#6875

Open
bentsherman wants to merge 1 commit intomasterfrom
print-workflow-outputs
Open

Add -print-output option to print workflow outputs JSON#6875
bentsherman wants to merge 1 commit intomasterfrom
print-workflow-outputs

Conversation

@bentsherman
Copy link
Member

Spun off from #6574

This PR adds an option -print-output to the run command which prints the workflow outputs as JSON on workflow completion

It has no effect when there is no output block

When combined with -q, it is useful for printing a comprehensive pipeline output that can be passed to downstream operations

Signed-off-by: Ben Sherman <bentshermann@gmail.com>
@bentsherman bentsherman requested a review from a team as a code owner February 27, 2026 16:03
@netlify
Copy link

netlify bot commented Feb 27, 2026

Deploy Preview for nextflow-docs-staging ready!

Name Link
🔨 Latest commit 142f8dd
🔍 Latest deploy log https://app.netlify.com/projects/nextflow-docs-staging/deploys/69a1c0712a339800087d1ba8
😎 Deploy Preview https://deploy-preview-6875--nextflow-docs-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@pditommaso pditommaso force-pushed the master branch 2 times, most recently from d9fa5cd to d752bc2 Compare February 28, 2026 13:10
@pditommaso
Copy link
Member

This could be useful in several scenarios. Could not make sense to print it by default in human readable manner and use an output format flag to switch to json, similarly to module run?

@bentsherman
Copy link
Member Author

Yes I would be happy to always print something for the output.

The -o option is already used by the run command to specify the output directory, so we would probably call it -output-format

@bentsherman
Copy link
Member Author

@jorgee if I add an -output-format option to the run command then you could reuse it in module run to control the output format like we were saying

@bentsherman bentsherman added this to the 26.04 milestone Mar 11, 2026
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.

2 participants