MCPcopy
hub / github.com/mitmproxy/mitmproxy / console_command

Method console_command

mitmproxy/tools/console/consoleaddons.py:281–288  ·  view source on GitHub ↗

Prompt the user to edit a command with a (possibly empty) starting value.

(self, *command_str: str)

Source from the content-addressed store, hash-verified

279
280 @command.command("console.command")
281 def console_command(self, *command_str: str) -> None:
282 """
283 Prompt the user to edit a command with a (possibly empty) starting value.
284 """
285 quoted = " ".join(command_lexer.quote(x) for x in command_str)
286 if quoted:
287 quoted += " "
288 signals.status_prompt_command.send(partial=quoted)
289
290 @command.command("console.command.confirm")
291 def console_command_confirm(

Callers 2

key_execute_focusMethod · 0.95
key_edit_focusMethod · 0.95

Calls 2

joinMethod · 0.45
sendMethod · 0.45

Tested by

no test coverage detected