Exemplo n.º 1
0
 def Println(self, *messages):
   sys.stdout.write(self.term.BOL + self.term.UP + self.term.CLEAR_EOL)
   tp.writeln(*messages)
Exemplo n.º 2
0
 def Help(cls):
   tp.writeln(("Usage:", "TITLE"), " " * 4,  "jat", cls.__NAME__)
   tp.writeln(cls.__HELPSHORT__)
Exemplo n.º 3
0
 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")
Exemplo n.º 4
0
 def Execute(cls, args):
   tp.writeln(("Jat %s" % config.__version__, "TITLE"))
Exemplo n.º 5
0
 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()
Exemplo n.º 6
0
 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__)