MCPcopy Create free account
hub / github.com/defold/defold / command

Function command

build_tools/run.py:143–150  ·  view source on GitHub ↗
(args, **kwargs)

Source from the content-addressed store, hash-verified

141 return output.strip()
142
143def command(args, **kwargs):
144 if kwargs.get("shell") is None:
145 kwargs["shell"] = False
146 # Executes a command, and exits if it fails
147 try:
148 return _exec_command(args, **kwargs)
149 except ExecException as e:
150 sys.exit(e.retcode)
151
152def shell_command(args, **kwargs):
153 # Executes a command, and exits if it fails

Callers

nothing calls this directly

Calls 3

_exec_commandFunction · 0.85
exitMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected