MCPcopy
hub / github.com/mitmproxy/mitmproxy / execute_command

Method execute_command

mitmproxy/tools/console/statusbar.py:126–130  ·  view source on GitHub ↗
(self, txt: str)

Source from the content-addressed store, hash-verified

124 self.prompting = self.execute_command
125
126 def execute_command(self, txt: str) -> None:
127 if txt.strip():
128 self.master.commands.call("commands.history.add", txt)
129 execute = commandexecutor.CommandExecutor(self.master)
130 execute(txt)
131
132 def sig_prompt_onekey(
133 self, prompt: str, keys: list[tuple[str, str]], callback: Callable[[str], None]

Callers

nothing calls this directly

Calls 1

callMethod · 0.45

Tested by

no test coverage detected