Format: application/octet-stream
1 from typing import IO, Any, Callable, List, Optional, Tuple
2
3 class Cmd:
4 prompt: str
5 identchars: str
6 ruler: str
7 lastcmd: str
8 intro: Optional[Any]
9 doc_leader: str
10 doc_header: str
11 misc_header: str
12 undoc_header: str
13 nohelp: str
14 use_rawinput: bool
15 stdin: IO[str]
16 stdout: IO[str]
17 cmdqueue: List[str]
18 completekey: str
19 def __init__(self, completekey: str = ..., stdin: Optional[IO[str]] = ..., stdout: Optional[IO[str]] = ...) -> None: ...
20 old_completer: Optional[Callable[[str, int], Optional[str]]]
21 def cmdloop(self, intro: Optional[Any] = ...) -> None: ...
22 def precmd(self, line: str) -> str: ...
23 def postcmd(self, stop: bool, line: str) -> bool: ...
24 def preloop(self) -> None: ...
25 def postloop(self) -> None: ...
26 def parseline(self, line: str) -> Tuple[Optional[str], Optional[str], str]: ...
27 def onecmd(self, line: str) -> bool: ...
28 def emptyline(self) -> bool: ...
29 def default(self, line: str) -> bool: ...
30 def completedefault(self, *ignored: Any) -> List[str]: ...
31 def completenames(self, text: str, *ignored: Any) -> List[str]: ...
32 completion_matches: Optional[List[str]]
33 def complete(self, text: str, state: int) -> Optional[List[str]]: ...
34 def get_names(self) -> List[str]: ...
35 # Only the first element of args matters.
36 def complete_help(self, *args: Any) -> List[str]: ...
37 def do_help(self, arg: str) -> Optional[bool]: ...
38 def print_topics(self, header: str, cmds: Optional[List[str]], cmdlen: Any, maxcol: int) -> None: ...
39 def columnize(self, list: Optional[List[str]], displaywidth: int = ...) -> None: ...
40