Currently, there are three runtime configuration options with bake.cfg
Prints a stacktrace when a task fails.
This isn't enabled by default since the failed task is rarely an issue with Bake, but the underlying command line tool it executes. Disabling it by defualt prevents unecessary clogging of the terminal
Ensures that the $PWD
will always be correct when running a task. Nearly always it is, with the only exception occuring for the case where a directory is changed within a task, and another task is manually ran
This isn't enabled by default since it traps DEBUG
(and therefore feels messy)
Big decorative lines are printed before and after execution of a task. This helps seeing which task is printed, but sometimes it can get in the way
This config switch only works if bake.cfg ...
is called either:
- On the first line of a
task.<TASK>()
function - On the first line of the
init()
function
Like so:
task.test() {
bake.cfg 'decorative-print' 'off'
}
This is enabled by default