from libs.MstCache import cache if __name__ == "__main__": try: cache.start() while True: cache.printmst() cmd = raw_input('>') if cmd == 'help': cache.mainhelp() elif cmd == 'exit': cache.mainexit() elif cmd == 'cls': cache.cls() elif cmd == 'use': cache.usage("use") elif cmd == 'show': cache.usage("show") elif cmd == 'search': cache.usage("search") elif cmd == 'banner': cache.banner() elif cmd == 'update': update.download() cache.start() elif len(cmd.split(" ")) == 2: n = cmd.split(" ") c = n[0] g = n[1] if c == 'search': if len(g.replace(" ",""))>0:
from libs.MstCache import cache if __name__ == "__main__": try: cache.start() while True: cache.printmst() cmd = raw_input('>') if cmd == 'help': cache.mainhelp() elif cmd == 'exit': cache.mainexit() elif cmd == 'cls': cache.cls() elif cmd == 'use': cache.usage("use") elif cmd == 'show': cache.usage("show") elif cmd == 'search': cache.usage("search") elif cmd == 'banner': cache.banner() elif cmd == 'update': update.download() cache.start() elif len(cmd.split(" ")) == 2: n = cmd.split(" ") c = n[0] g = n[1] if c == 'search': if len(g.replace(" ", "")) > 0:
updateplu = updateplu(cache.getplunums("all")) updatemst = updatemst() if __name__ == '__main__': try: while 1: cache.printmst() cmd = raw_input('>') if cmd == 'help': cache.mainhelp() elif cmd == 'exit': cache.mainexit() elif cmd == 'cls': cache.cls() elif cmd == 'use': cache.usage("use") elif cmd == 'show': cache.usage("show") elif cmd == 'search': cache.usage("search") elif cmd == 'banner': cache.banner() elif cmd == 'update': cache.usage("update") elif len(cmd.split(" ")) == 2: cnd = cmd.split(" ") c = cnd[0] g = cnd[1] if c == 'search': if len(g) > 0 and len(g.split(" ")) > 0: cache.search(g)
updateplu = updateplu(cache.getplunums("all")) updatemst = updatemst() if __name__=='__main__': try: while 1: cache.printmst() cmd=raw_input('>') if cmd == 'help': cache.mainhelp() elif cmd == 'exit': cache.mainexit() elif cmd == 'cls' : cache.cls() elif cmd == 'use': cache.usage("use") elif cmd == 'show': cache.usage("show") elif cmd == 'search': cache.usage("search") elif cmd == 'banner': cache.banner() elif cmd == 'update': cache.usage("update") elif len(cmd.split(" ")) == 2: cnd = cmd.split(" ") c = cnd[0] g = cnd[1] if c == 'search': if len(g)>0 and len(g.split(" "))>0: cache.search(g)