Open arichiardi opened 4 years ago
@schettino72 any thought on this?
I have capacity now for working on this but I would like to hear your opinion first.
Hi, thanks for this. Makes sense to me.
A better proposal would be to use a different name for the init section, maybe the [CONFIG] tag could be a good fit.
Well, the naming convention is to call it global vars, so lets define it in a section called VARS
.
How would variables declared in this way relate to values in the environment? Any reason to not use env vars for this purpose (e.g. loaded from .env
or otherwise declared in the environment)?
Alternatively, provide for these values to be overridden via the environment?
Dear all,
I would like to propose the following feature in
doit
(I have to say that I am adoit
newbie I might have misunderstood something here).I basically would like to contribute to "global vars" from a
doit.cfg
file.By that, I mean that the following should be equivalent:
A better proposal would be to use a different name for the init section, maybe the
[CONFIG]
tag could be a good fit.Describe alternatives you've considered
I am currently working around this limition by using th
[task:<task-name]
feature ofdoit.cfg
.My code then includes the following function wrapper:
This effectively makes the params global.