-
I am using the following Taskfile, but there are several tasks that refer to partially overlapping sources, and I felt it would be useful to be able to specify multiple sources at once. https://github.com/eitsupi/prqlr/blob/cade3aa1a8cd4c5b1a39b3ea38aea4d95d9e1fdc/Taskfile.yml#L42-L67 test-source:
sources:
- tests/**/*
- R/*
- src/Makevars*
- src/rust/Cargo.toml
- src/rust/src/**/*.rs
test-vignettes:
sources:
- vignettes/**/*.Rmd
- R/*
- src/Makevars*
- src/rust/Cargo.toml
- src/rust/src/**/*.rs I would like to define |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@eitsupi I agree that this would be a really nice feature to have and could simplify a lot of Taskfiles. Unfortunately, Task doesn't currently have anything built in to do this and YAML anchors do not support merging sequences. We would need to add custom functionality to our parser for this. Feel free to open an issue to track this if it is something you really need. We can then consider implementing it based on the popularity of that issue. |
Beta Was this translation helpful? Give feedback.
@eitsupi I agree that this would be a really nice feature to have and could simplify a lot of Taskfiles. Unfortunately, Task doesn't currently have anything built in to do this and YAML anchors do not support merging sequences. We would need to add custom functionality to our parser for this.
Feel free to open an issue to track this if it is something you really need. We can then consider implementing it based on the popularity of that issue.