MCPcopy
hub / github.com/mitmproxy/mitmproxy / command

Method command

mitmproxy/test/taddons.py:77–82  ·  view source on GitHub ↗

Invoke a command function with a list of string arguments within a command context, mimicking the actual command environment.

(self, func, *args)

Source from the content-addressed store, hash-verified

75 return sc.addons[0] if sc.addons else None
76
77 def command(self, func, *args):
78 """
79 Invoke a command function with a list of string arguments within a command context, mimicking the actual command environment.
80 """
81 cmd = command.Command(self.master.commands, "test.command", func)
82 return cmd.call(args)

Callers 5

test_cut_clipFunction · 0.80
test_cut_saveFunction · 0.80
test_cut_save_openFunction · 0.80
test_setFunction · 0.80
test_resolveFunction · 0.80

Calls 1

callMethod · 0.95

Tested by 5

test_cut_clipFunction · 0.64
test_cut_saveFunction · 0.64
test_cut_save_openFunction · 0.64
test_setFunction · 0.64
test_resolveFunction · 0.64