|
Let us walk on the 3-isogeny graph
|
Functions | |
| None | autocomplete () |
| Optional[str] | get_path_completion_type (List[str] cwords, int cword, Iterable[Any] opts) |
| Iterable[str] | auto_complete_paths (str current, str completion_type) |
Logic that powers autocompletion installed by ``pip completion``.
| Iterable[str] auto_complete_paths | ( | str | current, |
| str | completion_type | ||
| ) |
If ``completion_type`` is ``file`` or ``path``, list all regular files and directories starting with ``current``; otherwise only list directories starting with ``current``. :param current: The word to be completed :param completion_type: path completion type(``file``, ``path`` or ``dir``) :return: A generator of regular files and/or directories
Definition at line 143 of file autocompletion.py.
References i.
Referenced by pip._internal.cli.autocompletion.autocomplete().

| None autocomplete | ( | ) |
Entry Point for completion of main and subcommand options.
Definition at line 15 of file autocompletion.py.
References pip._internal.cli.autocompletion.auto_complete_paths(), pip._internal.cli.autocompletion.get_path_completion_type(), and i.

| Optional[str] get_path_completion_type | ( | List[str] | cwords, |
| int | cword, | ||
| Iterable[Any] | opts | ||
| ) |
Get the type of path completion (``file``, ``dir``, ``path`` or None) :param cwords: same as the environmental variable ``COMP_WORDS`` :param cword: same as the environmental variable ``COMP_CWORD`` :param opts: The available options to check :return: path completion type (``file``, ``dir``, ``path`` or None)
Definition at line 119 of file autocompletion.py.
References i.
Referenced by pip._internal.cli.autocompletion.autocomplete().
