Add a command to mitmproxy. Unless you are generating commands programatically, this API should be avoided. Decorate your function with `@mitmproxy.command.command` instead.
(self, path: str, func: Callable)
| 99 | self.master.options.add_option(name, typespec, default, help, choices) |
| 100 | |
| 101 | def add_command(self, path: str, func: Callable) -> None: |
| 102 | """Add a command to mitmproxy. |
| 103 | |
| 104 | Unless you are generating commands programatically, |
| 105 | this API should be avoided. Decorate your function with `@mitmproxy.command.command` instead. |
| 106 | """ |
| 107 | self.master.commands.add(path, func) |
| 108 | |
| 109 | |
| 110 | def traverse(chain): |