From 6acfe48f32110671a0adf80ad3497a35105b265d Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Wed, 23 Feb 2022 16:56:27 -0500 Subject: Allow setting method/separator in environment() and meson.add_devenv() --- docs/yaml/functions/environment.yaml | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'docs/yaml/functions') diff --git a/docs/yaml/functions/environment.yaml b/docs/yaml/functions/environment.yaml index 99c8a45..5fb81e3 100644 --- a/docs/yaml/functions/environment.yaml +++ b/docs/yaml/functions/environment.yaml @@ -5,8 +5,29 @@ description: Returns an empty [[@env]] object. optargs: env: - type: dict[str] + type: str | list[str] | dict[str] | dict[list[str]] since: 0.52.0 description: | If provided, each key/value pair is added into the [[@env]] object as if [[env.set]] method was called for each of them. + Since *0.62.0* list of strings is allowed in dictionnary values. In that + case values are joined using the separator. + +kwargs: + separator: + type: str + since: 0.62.0 + description: | + The separator to use for the initial values defined in + the first positional argument. If not explicitly specified, the default + path separator for the host operating system will be used, i.e. ';' for + Windows and ':' for UNIX/POSIX systems. + + method: + type: str + since: 0.62.0 + description: | + Must be one of 'set', 'prepend', or 'append' + (defaults to 'set'). Controls if initial values defined in the first + positional argument are prepended, appended or repace the current value + of the environment variable. -- cgit v1.1