MCPcopy Create free account
hub / github.com/nodejs/node / Dispatch

Method Dispatch

tools/gyp/pylib/gyp/win_tool.py:65–71  ·  view source on GitHub ↗

Dispatches a string command to a method.

(self, args)

Source from the content-addressed store, hash-verified

63 env["_MSPDBSRV_ENDPOINT_"] = endpoint_name
64
65 def Dispatch(self, args):
66 """Dispatches a string command to a method."""
67 if len(args) < 1:
68 raise Exception("Not enough arguments")
69
70 method = "Exec%s" % self._CommandifyName(args[0])
71 return getattr(self, method)(*args[1:])
72
73 def _CommandifyName(self, name_string):
74 """Transforms a tool name like recursive-mirror to RecursiveMirror."""

Callers 1

mainFunction · 0.95

Calls 1

_CommandifyNameMethod · 0.95

Tested by

no test coverage detected