MCPcopy
hub / github.com/mitmproxy/mitmproxy / refresh

Method refresh

mitmproxy/tools/console/commands.py:51–54  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

49 self.refresh()
50
51 def refresh(self):
52 self.cmds = list(self.master.commands.commands.values())
53 self.cmds.sort(key=lambda x: x.signature_help())
54 self.set_focus(self.index)
55
56 def get_edit_text(self):
57 return self.focus_obj.get_edit_text()

Callers 2

__init__Method · 0.95
layout_pushedMethod · 0.45

Calls 4

set_focusMethod · 0.95
valuesMethod · 0.80
sortMethod · 0.80
signature_helpMethod · 0.80

Tested by

no test coverage detected