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)
Example #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)
    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)
 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)
Example #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)
 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)
Example #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)
    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)
 def complete_connect(self, text, line, begidx, endidx):
     return AutoCompletionHelper.complete(line=line,
                                          text=text,
                                          args={}.fromkeys(
                                              ConnectCmdShell.OPTIONS),
                                          all_options=True)
 def complete_connect(self, text, line, begidx, endidx):
     return AutoCompletionHelper.complete(line=line, text=text,
                                          args={}.fromkeys(ConnectCmdShell.OPTIONS),
                                          all_options=True)