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