parameters: (self, text, line, begidx, endidx)
return_statement: return completions
docstring: completion for ls command
docstring_summary: completion for ls command
docstring_tokens: completion for ls command
function: def complete_tree(self, text, line, begidx, endidx):
          """completion for ls command"""
  
          options = self.TREE_OPTS
  
          if not text:
              completions = options
          else:
              completions = [f
                             for f in options
                             if f.startswith(text)
                             ]
          return completions
function_tokens: def complete_tree ( self , text , line , begidx , endidx ) : options = self . TREE_OPTS if not text : completions = options else : completions = [ f for f in options if f . startswith ( text ) ] return completions