-
-
Notifications
You must be signed in to change notification settings - Fork 634
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
override dist taskfile #1873
Comments
@lrob You could use the existing include mechanism to achieve the same effect. The specification of the included taskfile name uses a template mechanism, so it would even be possible to select which file to include at runtime. For example: version: '3'
includes:
lib:
taskfile: ./Taskfile.{{REL}}.yml //resolves to a taskfile containing task 'do_stuff'
flatten: true // no namespace, just call task'do_stuff' directly Then run task: |
Hi, thanks for your answer.
if we locally want a different greeting, so far, we need to copy the tasfkile.dist.yml in a new file named taskfile.yaml with this content:
what I would like to have is a mechanism that allows to override only some fields of the tasfile.dist.yml by creating a file named (for example) taskfile.override.yaml with the following content:
|
@lrob take a look at dotenv. Same strategy as before. You can certainly do these kinds of things already, however take a little more time to learn how the various mechanism work, and how you problem can be expressed to take advantage of the existing capabilities of Task. You will find a working solution for sure! |
If not already possible, and I missed it, it would be very useful to be able to override only certain fields of a taskfile.dist.yml with a local taskfile.yml. Just like in docker compose with docker-compose.override.yml. Here is the documentation for it.
This would have several advantages: the most important, I think, are:
The text was updated successfully, but these errors were encountered: