MCPcopy Index your code
hub / github.com/python/cpython / join_command

Function join_command

Android/android.py:130–134  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

128# Format a command so it can be copied into a shell. Like shlex.join, but also
129# accepts arguments which are Paths, or a single string/Path outside of a list.
130def join_command(args):
131 if isinstance(args, (str, Path)):
132 return str(args)
133 else:
134 return shlex.join(map(str, args))
135
136
137# Format the environment so it can be pasted into a shell.

Callers 3

runFunction · 0.70
gradle_taskFunction · 0.70

Calls 2

strFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…