MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / run_ui

Method run_ui

tensorflow/python/debug/cli/readline_ui.py:53–70  ·  view source on GitHub ↗

Run the CLI: See the doc of base_ui.BaseUI.run_ui for more details.

(self,
             init_command=None,
             title=None,
             title_color=None,
             enable_mouse_on_start=True)

Source from the content-addressed store, hash-verified

51 return candidates[state]
52
53 def run_ui(self,
54 init_command=None,
55 title=None,
56 title_color=None,
57 enable_mouse_on_start=True):
58 """Run the CLI: See the doc of base_ui.BaseUI.run_ui for more details."""
59
60 print(title)
61
62 if init_command is not None:
63 self._dispatch_command(init_command)
64
65 exit_token = self._ui_loop()
66
67 if self._on_ui_exit:
68 self._on_ui_exit()
69
70 return exit_token
71
72 def _ui_loop(self):
73 while True:

Callers

nothing calls this directly

Calls 2

_dispatch_commandMethod · 0.95
_ui_loopMethod · 0.95

Tested by

no test coverage detected