def _get_cli(self, loop):
global history
return CommandLineInterface(
application=create_prompt_application(
multiline=Condition(lambda: self._multi_line),
get_prompt_tokens=self._get_prompt,
history=history,
wrap_lines=True,
),
eventloop=loop,
)
评论列表
文章目录