Ejemplo n.º 1
0
 def run(self, args):
     credentials = Credentials(config=self.config)
     if args.flush:
         warning = raw_input("[!] Are you sure to flush the database ? [y/N]")
         if warning == 'y':
             credentials.flush()
             self.success("Database removed")
         else:
              self.warning("Nothing done")
     else:
         credentials.display(search=args.search, isSorted=args.sort)
Ejemplo n.º 2
0
 def run(self, args):
     credentials = Credentials(config=self.config)
     if args.flush:
         warning = raw_input(
             "[!] Are you sure to flush the database ? [y/N]")
         if warning == 'y':
             credentials.flush()
             self.success("Database removed")
         else:
             self.warning("Nothing done")
     else:
         credentials.display(search=args.search, isSorted=args.sort)