Commit fe62764
Add support for comma-separated file paths in ProcessEntryHandler (#6434) [ci fast]
- 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]>1 parent abbef79 commit fe62764
File tree
2 files changed
+65
-4
lines changed- modules/nextflow/src
- main/groovy/nextflow/script
- test/groovy/nextflow/script
2 files changed
+65
-4
lines changedLines changed: 24 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
343 | 364 | | |
344 | 365 | | |
345 | 366 | | |
| |||
360 | 381 | | |
361 | 382 | | |
362 | 383 | | |
363 | | - | |
364 | | - | |
| 384 | + | |
| 385 | + | |
365 | 386 | | |
366 | 387 | | |
367 | 388 | | |
| |||
376 | 397 | | |
377 | 398 | | |
378 | 399 | | |
379 | | - | |
| 400 | + | |
Lines changed: 41 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
209 | 210 | | |
210 | 211 | | |
211 | 212 | | |
212 | | - | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
0 commit comments