Exemplo n.º 1
0
    def complete_update(self, text, line, begidx, endidx):
        args = TypeHelper.get_types_containing_method(UpdateCmdShell.NAME, expendNestedTypes=True)
        specific_options = self.get_resource_specific_options(args,
                                                              line,
                                                              callback=self.__add_resource_specific_options)

        return AutoCompletionHelper.complete(line, text, args, specific_options=specific_options)
Exemplo n.º 2
0
    def complete_update(self, text, line, begidx, endidx):
        args = TypeHelper.get_types_containing_method(UpdateCmdShell.NAME,
                                                      expendNestedTypes=True)
        specific_options = self.get_resource_specific_options(
            args, line, callback=self.__add_resource_specific_options)

        return AutoCompletionHelper.complete(line,
                                             text,
                                             args,
                                             specific_options=specific_options)
Exemplo n.º 3
0
    def complete_show(self, text, line, begidx, endidx):

        args = TypeHelper.get_types_by_method(False, ShowCmdShell.ALIAS, expendNestedTypes=True)
        specific_options = self.get_resource_specific_options(args,
                                                              line,
                                                              callback=self.__add_resource_specific_options)
        return AutoCompletionHelper.complete(line=line,
                                             text=text,
                                             args=args,
                                             specific_options=specific_options)
Exemplo n.º 4
0
 def complete_list(self, text, line, begidx, endidx):
     args = TypeHelper.get_types_by_method(True, ListCmdShell.NAME, expendNestedTypes=True)
     specific_options = self.get_resource_specific_options(args,
                                                           line,
                                                           callback=self.__add_resource_specific_options)
     return AutoCompletionHelper.complete(line,
                                          text,
                                          args=args,
                                          common_options=ListCmdShell.OPTIONS,
                                          specific_options=specific_options)
Exemplo n.º 5
0
    def complete_show(self, text, line, begidx, endidx):

        args = TypeHelper.get_types_by_method(False,
                                              ShowCmdShell.ALIAS,
                                              expendNestedTypes=True)
        specific_options = self.get_resource_specific_options(
            args, line, callback=self.__add_resource_specific_options)
        return AutoCompletionHelper.complete(line=line,
                                             text=text,
                                             args=args,
                                             specific_options=specific_options)
Exemplo n.º 6
0
 def complete_list(self, text, line, begidx, endidx):
     args = TypeHelper.get_types_by_method(True,
                                           ListCmdShell.NAME,
                                           expendNestedTypes=True)
     specific_options = self.get_resource_specific_options(
         args, line, callback=self.__add_resource_specific_options)
     return AutoCompletionHelper.complete(
         line,
         text,
         args=args,
         common_options=ListCmdShell.OPTIONS,
         specific_options=specific_options)
Exemplo n.º 7
0
    def complete_action(self, text, line, begidx, endidx):
        args = self.__get_action_args(line)

        specific_options = self.get_resource_specific_options(
            args, line, callback=self.__add_resource_specific_options)

        specific_arguments = self.get_resource_specific_options(
            args, line, callback=self.__add_resource_specific_arguments)

        return AutoCompletionHelper.complete(
            line,
            text,
            args,
            specific_options=specific_options,
            specific_arguments=specific_arguments)
Exemplo n.º 8
0
    def complete_action(self, text, line, begidx, endidx):
        args = self.__get_action_args(line)

        specific_options = self.get_resource_specific_options(args,
                                                              line,
                                                              callback=self.__add_resource_specific_options)

        specific_arguments = self.get_resource_specific_options(args,
                                                                line,
                                                                callback=self.__add_resource_specific_arguments)

        return AutoCompletionHelper.complete(line,
                                             text,
                                             args,
                                             specific_options=specific_options,
                                             specific_arguments=specific_arguments)
Exemplo n.º 9
0
 def complete_connect(self, text, line, begidx, endidx):
     return AutoCompletionHelper.complete(line=line,
                                          text=text,
                                          args={}.fromkeys(
                                              ConnectCmdShell.OPTIONS),
                                          all_options=True)
Exemplo n.º 10
0
 def complete_connect(self, text, line, begidx, endidx):
     return AutoCompletionHelper.complete(line=line, text=text,
                                          args={}.fromkeys(ConnectCmdShell.OPTIONS),
                                          all_options=True)