def _get_gremlin_matches(self, text): buffer = readline.get_line_buffer() tail = buffer.rsplit('.', 1)[0] variables = get_variables(self.shell) steps = get_stepnames(self.shell) if tail: methods = get_object_methods(self.shell, tail) total = variables + steps + methods return [match for match in total if match.startswith(text)]
def _get_groovy_matches(self, text): total = get_variables(self.shell) return [match for match in total if match.startswith(text)]