diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2019-09-25 13:23:16 +0400 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2019-09-29 08:42:53 -0400 |
commit | a65d5801f363f70c01bc76c562d9b9e820dc52aa (patch) | |
tree | 8c50a9c7f66de012619e61a7dbdfaddd1bed0519 /docs/markdown/External-commands.md | |
parent | 18897b6afd35d7369658c9ecf562e2425256d6a9 (diff) | |
download | meson-a65d5801f363f70c01bc76c562d9b9e820dc52aa.zip meson-a65d5801f363f70c01bc76c562d9b9e820dc52aa.tar.gz meson-a65d5801f363f70c01bc76c562d9b9e820dc52aa.tar.bz2 |
environment: Support taking values from dict
Related to #5955.
Diffstat (limited to 'docs/markdown/External-commands.md')
-rw-r--r-- | docs/markdown/External-commands.md | 9 |
1 files changed, 8 insertions, 1 deletions
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() |