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