-
-
Notifications
You must be signed in to change notification settings - Fork 741
Closed
Labels
area: variablesChanges related to variables.Changes related to variables.state: duplicateDuplicates another issue.Duplicates another issue.
Description
Firstly — another thanks for this library! It's much more accessible than make
, and others are starting to use it at my company.
Something that can be confusing for users is understanding what variables need to be supplied for a task, without reading the whole task. As a result, I have a convention of listing them explicitly for each task or file, like:
switch-env:
vars:
project: "{{.project}}"
cluser: "{{.cluster}}"
This works well at the task level, but not the file level. So one question and one feature question:
- It doesn't seem to work at the file level; i.e. this will pass an empty string for
{{project}}
when another taskfile sets the var. Removing this definition allows it work. Could I ask why that is?
vars:
project: "{{.project}}"
- Is there more general demand for explicitly listing variables by task & file? I would be interested in a
strict
setting that warned if variables were used implicitly, since it makes them difficult to track.
Thanks again
dAnjou, ivan-kleshnin, thinkJD, AndreasMaros and apgrucza
Metadata
Metadata
Assignees
Labels
area: variablesChanges related to variables.Changes related to variables.state: duplicateDuplicates another issue.Duplicates another issue.