MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / shell_quote

Function shell_quote

misc/python/materialize/ui.py:141–149  ·  view source on GitHub ↗

Return shell-escaped string of all the parameters :: >>> shell_quote(["one", "two three"]) "one 'two three'"

(args: Iterable[Any])

Source from the content-addressed store, hash-verified

139
140
141def 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
152def env_is_truthy(env_var: str, default: str = "0") -> bool:

Callers

nothing calls this directly

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected