Beispiel #1
0
    def completeKeywords(self, text, line, begidx, endidx):
        arguments = shlex.split(line)
        assert arguments[0] == self.name

        line = line[len(self.name) + 1 :]
        begidx = begidx - len(self.name) + 1
        endidx = endidx - len(self.name) + 1
        keyword, sep, arguments = line.partition(" ")

        if begidx >= len(keyword) and keyword in self.findKeywords():
            if hasattr(self, "complete_%s" % keyword):
                func = getattr(self, "complete_%s" % keyword)
                return func(text, line, begidx, endidx)
            else:
                return []
        else:
            return autoCompleteList(text, self.findKeywords())
Beispiel #2
0
    def completeKeywords(self, text, line, begidx, endidx):
        arguments = shlex.split(line)
        assert arguments[0] == self.name

        line = line[len(self.name) + 1:]
        begidx = begidx - len(self.name) + 1
        endidx = endidx - len(self.name) + 1
        keyword, sep, arguments = line.partition(' ')

        if begidx >= len(keyword) and keyword in self.findKeywords():
            if hasattr(self, "complete_%s" % keyword):
                func = getattr(self, "complete_%s" % keyword)
                return func(text, line, begidx, endidx)
            else:
                return []
        else:
            return autoCompleteList(text, self.findKeywords())
Beispiel #3
0
 def complete_run(self, text, line, begidx, endidx):
     return autoCompleteList(text, self.getWorkflowNames())
Beispiel #4
0
 def complete_run(self, text, line, begidx, endidx):
     return autoCompleteList(text, self.getWorkflowNames())
Beispiel #5
0
 def complete_state(self, text, line, begidx, endidx):
     return autoCompleteList(text, self.getFileSystemNames())
Beispiel #6
0
 def complete_select(self, text, line, begidx, endidx):
     return autoCompleteList(text, self.getAllCaseList())
Beispiel #7
0
    def complete_arguments(self, text, line, begidx, endidx):
        arguments = self.splitArguments(line)

        if len(arguments) > 2 or len(arguments) == 2 and not text:
            return []
        return autoCompleteList(text, self.getPluginNames())
Beispiel #8
0
 def complete_state(self, text, line, begidx, endidx):
     return autoCompleteList(text, self.getFileSystemNames())
Beispiel #9
0
    def complete_arguments(self, text, line, begidx, endidx):
        arguments = self.splitArguments(line)

        if len(arguments) > 2 or len(arguments) == 2 and not text:
            return []
        return autoCompleteList(text, self.getPluginNames())