MCPcopy Index your code
hub / github.com/dbcli/mycli / cond

Function cond

mycli/clibuffer.py:14–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12def cli_is_multiline(mycli) -> Filter:
13 @Condition
14 def cond():
15 if not mycli.multi_line:
16 return False
17 else:
18 doc = get_app().layout.get_buffer_by_name(DEFAULT_BUFFER).document
19 return not _multiline_exception(doc.text)
20
21 return cond
22

Callers

nothing calls this directly

Calls 2

_multiline_exceptionFunction · 0.85
get_buffer_by_nameMethod · 0.80

Tested by

no test coverage detected