Skip to content

feat: add stdin support for file options#551

Merged
jordeu merged 1 commit into
seqeralabs:masterfrom
ejseqera:feature/stdin-support-for-file-options
May 22, 2026
Merged

feat: add stdin support for file options#551
jordeu merged 1 commit into
seqeralabs:masterfrom
ejseqera:feature/stdin-support-for-file-options

Conversation

@ejseqera
Copy link
Copy Markdown
Member

This PR adds support for reading file content from stdin using the - convention for file-based options in pipeline launch commands.

What's Changed

Users can now pass - as the value for any file option to read content from stdin instead of a file path:

  • --params-file - - Read pipeline parameters from stdin
  • --config - - Read Nextflow config from stdin
  • --pre-run - - Read pre-run script from stdin
  • --post-run - - Read post-run script from stdin

For example:

# Pass parameters via pipe
echo '{"genome": "GRCh38"}' | tw launch my-pipeline --params-file -

# Pass config via heredoc
tw launch my-pipeline --config - <<EOF
process {
    executor = 'awsbatch'
    queue = 'my-queue'
}
EOF

# Pass pre-run script from stdin
cat setup.sh | tw launch my-pipeline --pre-run -

# Chain with other commands
curl https://example.com/params.json | tw launch my-pipeline --params-file -

@jordeu jordeu force-pushed the feature/stdin-support-for-file-options branch from 6c19a6f to a1eed19 Compare May 21, 2026 16:46
@jordeu jordeu merged commit 7a76589 into seqeralabs:master May 22, 2026
6 checks passed
@jordeu jordeu mentioned this pull request May 22, 2026
2 tasks
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