-
Notifications
You must be signed in to change notification settings - Fork 748
Add support for comma-separated file paths in ProcessEntryHandler #6434
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
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 <[email protected]>
✅ Deploy Preview for nextflow-docs-staging ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Probably better to support space-separated files since it will usually be a glob pattern like |
|
That can become tricky to handle file names with blanks |
|
The same problem exists for a comma-separated list -- you have to quote or escape things either way |
|
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:
|
|
I see, so it's an issue with the CLI parsing. Should be something we can address in CLI v2 then |
|
Yep |
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