Open balthild opened 3 weeks ago
Closes #61
Currently I just mix the config variables and environment variables together. For example:
[vars.variables] config = "~/.config" [cat] depends = ['vars'] [cat.variables] cat_name = 'QuarticCat' [cat.files] cat = '$config/$cat_name'
config="~/config_dir_from_env" dotter deploy will results in cat being ~/.config/QuarticCat rather than ~/config_dir_from_env/QuarticCat.
config="~/config_dir_from_env" dotter deploy
cat
~/.config/QuarticCat
~/config_dir_from_env/QuarticCat
What do you think? Is this behavior good or it's better to separate them (e.g. config.var_in_config vs. ENV_VARS)?
config.var_in_config
ENV_VARS
Closes #61
Design considerations
Currently I just mix the config variables and environment variables together. For example:
config="~/config_dir_from_env" dotter deploy
will results incat
being~/.config/QuarticCat
rather than~/config_dir_from_env/QuarticCat
.What do you think? Is this behavior good or it's better to separate them (e.g.
config.var_in_config
vs.ENV_VARS
)?