MCPcopy
hub / github.com/tinode/chat / run

Method run

tn-cli/macros.py:35–46  ·  view source on GitHub ↗

Expands the macro and returns the list of commands to actually execute to the caller depending on the presence of the --explain argument.

(self, id, cmd, args)

Source from the content-addressed store, hash-verified

33 pass
34
35 def run(self, id, cmd, args):
36 """Expands the macro and returns the list of commands to actually execute to the caller
37 depending on the presence of the --explain argument.
38 """
39 cmds = self.expand(id, cmd, args)
40 if cmd.explain:
41 if cmds is None:
42 return None
43 for item in cmds:
44 stdoutln(item)
45 return []
46 return cmds
47
48
49class Usermod(Macro):

Callers 2

serialize_cmdFunction · 0.45
auth.pyFile · 0.45

Calls 2

expandMethod · 0.95
stdoutlnFunction · 0.90

Tested by

no test coverage detected