Return shell-escaped string of all the parameters :: >>> shell_quote(["one", "two three"]) "one 'two three'"
(args: Iterable[Any])
| 139 | |
| 140 | |
| 141 | def shell_quote(args: Iterable[Any]) -> str: |
| 142 | """Return shell-escaped string of all the parameters |
| 143 | |
| 144 | :: |
| 145 | |
| 146 | >>> shell_quote(["one", "two three"]) |
| 147 | "one 'two three'" |
| 148 | """ |
| 149 | return " ".join(shlex.quote(str(arg)) for arg in args) |
| 150 | |
| 151 | |
| 152 | def env_is_truthy(env_var: str, default: str = "0") -> bool: |