OILS / pyext / line_input.pyi View on Github | oilshell.org

44 lines, 22 significant
1from typing import Callable, List, Optional
2
3
4def parse_and_bind(s: str) -> None: ...
5
6def read_init_file(s: str) -> None: ...
7
8def add_history(line: str) -> None: ...
9
10def read_history_file(path: Optional[str] = None) -> None: ...
11
12def write_history_file(path: Optional[str] = None) -> None: ...
13
14def set_completer(completer: Optional[Callable[[str, int], str]] = None) -> None: ...
15
16def set_completer_delims(delims: str) -> None: ...
17
18def set_completion_display_matches_hook(hook: Optional[Callable[[str, List[str], int], None]] = None) -> None: ...
19
20def get_line_buffer() -> str: ...
21
22def get_begidx() -> int: ...
23
24def get_endidx() -> int: ...
25
26def clear_history() -> None: ...
27
28def get_history_item(pos: int) -> str: ...
29
30def remove_history_item(pos: int) -> None: ...
31
32def get_current_history_length() -> int: ...
33
34def resize_terminal() -> None: ...
35
36def list_funmap_names() -> None: ...
37
38def function_dumper(print_readably: bool) -> None: ...
39
40def macro_dumper(print_readably: bool) -> None: ...
41
42def variable_dumper(print_readably: bool) -> None: ...
43
44def query_bindings(fn_name: str) -> None: ...