Spaces:
Runtime error
Runtime error
File size: 883 Bytes
6309782 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | from mainLogic.big4.decrypt.key import getKey
from beta.shellLogic import simpleParser
class HandleKeyAndAvailiblity:
def __init__(self):
self.commandList = {
"get_key":{
"regex": r"(get_key|key)",
"func": self.get_key,
},
"check":{
"func": self.check
}
}
def get_key(self,args=[]):
if args:
getKey(args[0])
def check(self,args=[]):
print("Checking the availiblity of the key...")
if args:
if getKey(args[0],verbose=False):
print("Key is available")
else:
print("Key is not available")
else:
print("Please provide a key to check")
def parseAndRun(self,command,args=[]):
simpleParser.parseAndRun(self.commandList, command, args)
|