Example #1
0
 def run(self, args):
     Mcmdfns.run_set_bool(self, args)
     if self.settings['autopython']:
         if self.python_cmd is None:
             self.python_cmd = self.proc.commands['python'].run
             pass
         self.proc.add_preloop_hook(self.run_python, -1)
     else:
         self.proc.remove_preloop_hook(self.run_python)
         pass
     Mcmdfns.run_show_bool(self)
     return
Example #2
0
 def run(self, args):
     Mcmdfns.run_set_bool(self, args)
     if self.settings["autopython"]:
         if self.python_cmd is None:
             self.python_cmd = self.proc.commands["python"].run
             pass
         self.proc.add_preloop_hook(self.run_python, -1)
     else:
         self.proc.remove_preloop_hook(self.run_python)
         pass
     Mcmdfns.run_show_bool(self)
     return
Example #3
0
    def run(self, args):
        run_set_bool(self, args)
        if self.settings["autolist"]:
            if self.list_cmd is None:
                self.list_cmd = self.proc.commands["list"].run
                pass
            self.proc.add_preloop_hook(self.run_list, 0)

        else:
            self.proc.remove_preloop_hook(self.run_list)
            pass
        run_show_bool(self, "Show `list` on debugger entry")
        return
Example #4
0
 def run(self, args):
     # Strip off ReStructuredText tags
     doc = re.sub('[*]', '', self.short_help).lstrip()
     # Take only the first two tokens
     i = doc.find(' ')
     if i > 0:
         j = doc.find(' ', i + 1)
         if j > 0: doc = doc[0:j]
         pass
     doc = doc.capitalize().split('\n')[0].rstrip('.')
     Mcmdfns.run_set_bool(self, args)
     Mcmdfns.run_show_bool(self, doc)
     return
Example #5
0
 def run(self, args):
     # Strip off ReStructuredText tags
     doc = re.sub("[*]", "", self.short_help).lstrip()
     # # Take only the first two tokens
     # i = doc.find(' ')
     # if i > 0:
     #     j = doc.find(' ', i+1)
     #     if j > 0: doc = doc[0:j]
     #     pass
     doc = doc.capitalize().split("\n")[0].rstrip(".")
     Mcmdfns.run_set_bool(self, args)
     Mcmdfns.run_show_bool(self, doc)
     return
Example #6
0
    def run(self, args):
        Mcmdfns.run_set_bool(self, args)
        if self.settings['autolist']:
            if self.list_cmd is None:
                self.list_cmd = self.proc.commands['list'].run
                pass
            self.proc.add_preloop_hook(self.run_list, 0)

        else:
            self.proc.remove_preloop_hook(self.run_list)
            pass
        Mcmdfns.run_show_bool(self, 'Show `list` on debugger entry')
        return
 def run(self, args):
     # Strip off ReStructuredText tags
     doc = re.sub('[*]', '', self.__doc__).lstrip()
     # # Take only the first two tokens
     # i = doc.find(' ')
     # if i > 0:
     #     j = doc.find(' ', i+1)
     #     if j > 0: doc = doc[0:j]
     #     pass
     doc = doc.capitalize().split('\n')[0].rstrip('.')
     Mcmdfns.run_set_bool(self, args)
     Mcmdfns.run_show_bool(self, doc)
     return
Example #8
0
    def run(self, args):
        Mcmdfns.run_set_bool(self, args)
        if self.settings['autolist']:
            if self.list_cmd is None:
                self.list_cmd = self.proc.commands['list'].run
                pass
            self.proc.add_preloop_hook(self.run_list, 0)

        else:
            self.proc.remove_preloop_hook(self.run_list)
            pass
        Mcmdfns.run_show_bool(self, 'Show `list` on debugger entry')
        return
Example #9
0
    def run(self, args):
        run_set_bool(self, args)
        if self.settings["autostack"]:
            if self.info_stack_cmd is None:
                info_cmd = self.proc.commands["info"]
                self.info_stack_cmd = info_cmd.cmds.lookup("stack").run
                pass
            self.proc.add_preloop_hook(self.run_infostack, 0)

        else:
            self.proc.remove_preloop_hook(self.run_infostack)
            pass
        run_show_bool(self, "Run `info stack` on debugger entry")
        return
Example #10
0
 def run(self, args):
     # Strip off ReStructuredText tags
     doc = re.sub('[*]', '', self.short_help)
     doc = doc[5:].capitalize().split('\n')[0].rstrip('.')
     Mcmdfns.run_show_bool(self, doc)
     return
Example #11
0
 def run(self, args):
     # Strip off ReStructuredText tags
     doc = re.sub("[*]", "", self.short_help)
     doc = doc[5:].capitalize().split("\n")[0].rstrip(".")
     Mcmdfns.run_show_bool(self, doc)
     return
 def run(self, args):
     # Strip off ReStructuredText tags
     doc = re.sub('[*]', '', self.__doc__)
     doc = doc[5:].capitalize().split('\n')[0].rstrip('.')
     Mcmdfns.run_show_bool(self, doc)
     return