From a65d5801f363f70c01bc76c562d9b9e820dc52aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Wed, 25 Sep 2019 13:23:16 +0400 Subject: environment: Support taking values from dict Related to #5955. --- docs/markdown/External-commands.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'docs/markdown/External-commands.md') diff --git a/docs/markdown/External-commands.md b/docs/markdown/External-commands.md index 4c8c8e4..cafd280 100644 --- a/docs/markdown/External-commands.md +++ b/docs/markdown/External-commands.md @@ -16,7 +16,14 @@ output = r.stdout().strip() errortxt = r.stderr().strip() ``` -Additionally, since 0.50.0, you can pass the command [`environment`](Reference-manual.html#environment-object) object: +Since 0.52.0, you can pass the command environment as a dictionary: + +```meson +run_command('command', 'arg1', 'arg2', env: {'FOO': 'bar'}) +``` + +Since 0.50.0, you can also pass the command +[`environment`](Reference-manual.html#environment-object) object: ```meson env = environment() -- cgit v1.1