コード例 #1
0
 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)]
コード例 #2
0
 def _get_groovy_matches(self, text):
     total = get_variables(self.shell)
     return [match for match in total if match.startswith(text)]