diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2019-01-20 07:15:20 +0100 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-01-27 19:24:15 +0200 |
commit | 33d82201bd4114d9bd81b45bce86d7938bc30869 (patch) | |
tree | 303de8077bedcdec5d82615547f2fd151675b386 /docs/markdown/snippets | |
parent | c07e5124bcb2eb5f4a078fe537d42c5ff64e60af (diff) | |
download | meson-33d82201bd4114d9bd81b45bce86d7938bc30869.zip meson-33d82201bd4114d9bd81b45bce86d7938bc30869.tar.gz meson-33d82201bd4114d9bd81b45bce86d7938bc30869.tar.bz2 |
run_command: add env kwarg
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r-- | docs/markdown/snippets/run_command_env.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/markdown/snippets/run_command_env.md b/docs/markdown/snippets/run_command_env.md new file mode 100644 index 0000000..dfa5ac5 --- /dev/null +++ b/docs/markdown/snippets/run_command_env.md @@ -0,0 +1,9 @@ +## `run_command` accepts `env` kwarg + +You can pass [`environment`](Reference-manual.html#environment-object) object to [`run_command`](Reference-manual.html#run-command), just like to `test`: + +```meson +env = environment() +env.set('FOO', 'bar') +run_command('command', 'arg1', 'arg2', env: env) +``` |