EnvVarContext
The EnvVarContext
captures an environment variable.
It can be created using the capsula.EnvVarContext.__init__
method.
capsula.EnvVarContext.__init__
Configuration example
Via capsula.toml
Via @capsula.context
decorator
import capsula
@capsula.run()
@capsula.context(capsula.EnvVarContext("HOME"), mode="pre")
def func(): ...
Output example
The following is an example of the output of the EnvVarContext
, reported by the JsonDumpReporter
: