Based on the discussion from #31, this adds support for an implicit @confdir variable which points to the directory containing the current modd.conf file.
To support using this variable in the indir option, which currently isn't templated like the commands themselves, this specific variable is replaced in the parsing step. It could also be done by using the same rendering logic that's used in varcmd on the indir option, which would allow using all variables, but that seemed too complicated for a relatively niche use case.
Based on the discussion from #31, this adds support for an implicit
@confdir
variable which points to the directory containing the currentmodd.conf
file.To support using this variable in the
indir
option, which currently isn't templated like the commands themselves, this specific variable is replaced in the parsing step. It could also be done by using the same rendering logic that's used invarcmd
on theindir
option, which would allow using all variables, but that seemed too complicated for a relatively niche use case.