massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stdlib / cmd.pyi
1 from typing import IO, Any, Callable
2
3 class Cmd:
4     prompt: str
5     identchars: str
6     ruler: str
7     lastcmd: str
8     intro: Any | None
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: IO[str] | None = ..., stdout: IO[str] | None = ...) -> None: ...
20     old_completer: Callable[[str, int], str | None] | None
21     def cmdloop(self, intro: Any | None = ...) -> 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[str | None, str | None, 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: list[str] | None
33     def complete(self, text: str, state: int) -> list[str] | None: ...
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) -> bool | None: ...
38     def print_topics(self, header: str, cmds: list[str] | None, cmdlen: Any, maxcol: int) -> None: ...
39     def columnize(self, list: list[str] | None, displaywidth: int = ...) -> None: ...