diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-07-02 10:50:19 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-07-02 10:50:19 -0400 |
commit | 479cab00b4c0bd6a2ce20605f97a8f904dc0136f (patch) | |
tree | afb38c43fc5539ee41585d0ae28b4fe0ffadedd8 /cmd2/cmd2.py | |
parent | b7fa4e46593151086a4186c9d90dc72b809c9b45 (diff) | |
download | cmd2-git-479cab00b4c0bd6a2ce20605f97a8f904dc0136f.tar.gz |
Removed cmd2.basic_complete function since it was added to utils
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r-- | cmd2/cmd2.py | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index d6fc78eb..d65b750c 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -861,21 +861,6 @@ class Cmd(cmd.Cmd): return tokens, raw_tokens - # noinspection PyUnusedLocal - @staticmethod - def basic_complete(text: str, line: str, begidx: int, endidx: int, match_against: Iterable) -> List[str]: - """ - Performs tab completion against a list - - :param text: the string prefix we are attempting to match (all returned matches must begin with it) - :param line: the current input line with leading whitespace removed - :param begidx: the beginning index of the prefix text - :param endidx: the ending index of the prefix text - :param match_against: the list being matched against - :return: a list of possible tab completions - """ - return [cur_match for cur_match in match_against if cur_match.startswith(text)] - def delimiter_complete(self, text: str, line: str, begidx: int, endidx: int, match_against: Iterable, delimiter: str) -> List[str]: """ |