Debian Codegraph @

.evergreen/legacy_config_generator/evergreen_config_lib/__init__.py

raw
1 # Copyright 2009-present MongoDB, Inc.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 from typing import Iterable
16
17 from evergreen_config_generator.functions import shell_exec
18
19
20 def shell_mongoc(
21 script: str,
22 test: bool = True,
23 errexit: bool = True,
24 xtrace: bool = False,
25 silent: bool = False,
26 continue_on_err: bool = False,
27 background: bool = False,
28 add_expansions_to_env: bool = False,
29 redirect_standard_error_to_output: bool = False,
30 include_expansions_in_env: Iterable[str] = (),
31 ):
32 return shell_exec(
33 script,
34 working_dir='mongoc',
35 test=test,
36 errexit=errexit,
37 xtrace=xtrace,
38 silent=silent,
39 continue_on_err=continue_on_err,
40 background=background,
41 add_expansions_to_env=add_expansions_to_env,
42 include_expansions_in_env=include_expansions_in_env,
43 redirect_standard_error_to_output=redirect_standard_error_to_output,
44 )