diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2019-06-15 15:00:59 -0400 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2019-06-15 15:00:59 -0400 |
commit | 70bf9e1a12b89bb913c11fb07893ab4b9cab2576 (patch) | |
tree | 27bb62898d635bcaa8e6e8182d52f5105210b3f6 /examples/tab_autocompletion.py | |
parent | c12ba0ff11b3a8fd083c641cb9149aff6494bbf9 (diff) | |
download | cmd2-git-70bf9e1a12b89bb913c11fb07893ab4b9cab2576.tar.gz |
Began work to minimize public API
Diffstat (limited to 'examples/tab_autocompletion.py')
-rwxr-xr-x | examples/tab_autocompletion.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/tab_autocompletion.py b/examples/tab_autocompletion.py index 8f27cb90..4919eca8 100755 --- a/examples/tab_autocompletion.py +++ b/examples/tab_autocompletion.py @@ -382,7 +382,7 @@ class TabCompleteExample(cmd2.Cmd): self, arg_choices=choices) - tokens, _ = self.tokens_for_completion(line, begidx, endidx) + tokens, _ = self._tokens_for_completion(line, begidx, endidx) results = completer.complete_command(tokens, text, line, begidx, endidx) return results @@ -443,7 +443,7 @@ class TabCompleteExample(cmd2.Cmd): # Demonstrates a custom completion function that does more with the command line than is # allowed by the standard completion functions def _filter_episodes(self, text, line, begidx, endidx, show_db, user_lib): - tokens, _ = self.tokens_for_completion(line, begidx, endidx) + tokens, _ = self._tokens_for_completion(line, begidx, endidx) show_id = tokens[3] if show_id: if show_id in show_db: @@ -530,7 +530,7 @@ class TabCompleteExample(cmd2.Cmd): self, subcmd_args_lookup=library_subcommand_groups) - tokens, _ = self.tokens_for_completion(line, begidx, endidx) + tokens, _ = self._tokens_for_completion(line, begidx, endidx) results = completer.complete_command(tokens, text, line, begidx, endidx) return results |