MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / layout_cycle

Method layout_cycle

mitmproxy/tools/console/consoleaddons.py:129–135  ·  view source on GitHub ↗

Cycle through the console layout options.

(self)

Source from the content-addressed store, hash-verified

127
128 @command.command("console.layout.cycle")
129 def layout_cycle(self) -> None:
130 """
131 Cycle through the console layout options.
132 """
133 opts = self.layout_options()
134 off = self.layout_options().index(ctx.options.console_layout)
135 ctx.options.update(console_layout=opts[(off + 1) % len(opts)])
136
137 @command.command("console.panes.next")
138 def panes_next(self) -> None:

Callers

nothing calls this directly

Calls 3

layout_optionsMethod · 0.95
indexMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected