Open MartinHelmut opened 3 years ago
If this will become an option, how does this affect #23 ? Also, what will be the default "current working directory" for the execution context? It can only be the parent directory, otherwise it becomes necessary to add the dir
option with "../"
to every single command (🙁).
A way to resolve this could be a "global" option (global options do not exist yet) like rootDir
, e.g.:
# config/litr.toml
[options]
rootDir = "../"
[commands]
build = "..."
To enable a typical configuration pattern the search path for
litr.toml
(.litr.toml
) could also look for inside aconfig
folder. This would enable the following search patterns (by keeping a nested execution):Besides this, there could also be the option to invoke litr by specifying a search path via environment variable, e.g.: