Add support for comma-separated file paths in ProcessEntryHandler#6434
Merged
pditommaso merged 1 commit intomasterfrom Oct 1, 2025
Merged
Add support for comma-separated file paths in ProcessEntryHandler#6434pditommaso merged 1 commit intomasterfrom
pditommaso merged 1 commit intomasterfrom
Conversation
- Add parseFileInput() helper method to handle comma-separated file paths - Support both String and GString inputs for file parameters - Return List<Path> for multiple files, single Path for one file - Handle whitespace trimming and empty string filtering - Maintain backward compatibility with existing single file behavior - Add comprehensive unit tests using Spock parameterized testing Usage: - Single file: --input file.txt (returns Path object) - Multiple files: --input "file1.txt,file2.txt,file3.txt" (returns List<Path>) - With whitespace: --input " file1.txt , file2.txt " (handles gracefully) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
✅ Deploy Preview for nextflow-docs-staging ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Member
|
Probably better to support space-separated files since it will usually be a glob pattern like |
Member
Author
|
That can become tricky to handle file names with blanks |
Member
|
The same problem exists for a comma-separated list -- you have to quote or escape things either way |
Member
Author
|
Nextflow CLI handles blank separated values as independent value. I mean if you have: a1.txt, a2.txt, and a3.txt and run:
instead, if you wrap in quotes:
|
Member
|
I see, so it's an issue with the CLI parsing. Should be something we can address in CLI v2 then |
Member
Author
|
Yep |
bentsherman
reviewed
Sep 30, 2025
modules/nextflow/src/main/groovy/nextflow/script/ProcessEntryHandler.groovy
Show resolved
Hide resolved
bentsherman
approved these changes
Sep 30, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Enhances ProcessEntryHandler to support comma-separated file paths for the
fileinput type, enabling users to pass multiple files in a single parameter.Changes
parseFileInput()helper method to handle comma-separated valuesList<Path>for multiple files, singlePathfor one fileUsage
🤖 Generated with Claude Code