def Println(self, *messages): sys.stdout.write(self.term.BOL + self.term.UP + self.term.CLEAR_EOL) tp.writeln(*messages)
def Help(cls): tp.writeln(("Usage:", "TITLE"), " " * 4, "jat", cls.__NAME__) tp.writeln(cls.__HELPSHORT__)
def Help(cls): tp.writeln(("Function:", "TITLE"), " " * 1, cls.__HELPSHORT__) tp.writeln(("Usage:", "TITLE"), " " * 4, "jat", cls.__NAME__, "[targets]") tp.writeln(("Sample:", "TITLE"), " " * 3, "jat", cls.__NAME__, "samples/cpp:hello-world")
def Execute(cls, args): tp.writeln(("Jat %s" % config.__version__, "TITLE"))
def Execute(cls, args): if args and JatCommand._CommandsDict.get(args[0]) is None: tp.writeln("Command", (args[0], "ERROR"), "doesn't exist.") tp.writeln() command = args and JatCommand._CommandsDict.get(args[0]) or HelpCommand command.Help()
def Help(cls): tp.writeln(("Jat %s" % config.__version__, "TITLE")) tp.writeln() tp.writeln(("Usage:", "TITLE"), " " * 4, "jat [command] [options] [targets]") tp.writeln() tp.writeln("Commands help information:") for name in sorted(JatCommand._CommandsDict.keys()): tp.writeln(" " * 4, (name.ljust(20), "TITLE"), JatCommand._CommandsDict[name].__HELPSHORT__)