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()
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)
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")
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")