Esempio n. 1
0
 def print(self):
     for l in self.token_lines:
         for (string, col, is_bold) in l:
             if self.gctx.color:
                 if col != 0:
                     string = color(string, col)
                 if is_bold:
                     string = bold(string)
             print_no_end(string)
         print()
Esempio n. 2
0
 def __exec_help(self, args):
     for name in COMMANDS_ALPHA:
         cmd = self.COMMANDS[name]
         if cmd.callback_exec is not None:
             print_no_end(color(name, 2))
             print_no_end(" ")
             for i, line in enumerate(cmd.desc):
                 if i > 0:
                     print_no_end(self.TAB)
                 print(line)
Esempio n. 3
0
 def __exec_help(self, args):
     for name in self.COMMANDS_ALPHA:
         cmd = self.COMMANDS[name]
         if cmd.callback_exec is not None:
             self.rl.print(color(name, 2))
             self.rl.print(" ")
             for i, line in enumerate(cmd.desc):
                 if i > 0:
                     self.rl.print(self.TAB)
                 self.rl.print(line)
                 self.rl.print("\n")
Esempio n. 4
0
 def __exec_help(self, args):
     for name in COMMANDS_ALPHA:
         cmd = self.COMMANDS[name]
         if cmd.callback_exec is not None:
             self.rl.print(color(name, 2))
             self.rl.print(" ")
             for i, line in enumerate(cmd.desc):
                 if i > 0:
                     self.rl.print(self.TAB)
                 self.rl.print(line)
                 self.rl.print("\n")