|
|
@ -130,7 +130,7 @@ def ls(cmd="SELECT * FROM data"):
|
|
|
|
cursor.execute(cmd)
|
|
|
|
cursor.execute(cmd)
|
|
|
|
data = list(cursor.fetchall())
|
|
|
|
data = list(cursor.fetchall())
|
|
|
|
if data == []:
|
|
|
|
if data == []:
|
|
|
|
print("The database is empty.")
|
|
|
|
print("No results.")
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
for _ in range(len(data)):
|
|
|
|
for _ in range(len(data)):
|
|
|
|
data[_] = list(data[_])
|
|
|
|
data[_] = list(data[_])
|
|
|
@ -195,7 +195,7 @@ Usage:
|
|
|
|
add - add an entry
|
|
|
|
add - add an entry
|
|
|
|
ls - list entires
|
|
|
|
ls - list entires
|
|
|
|
edit - edit an entry
|
|
|
|
edit - edit an entry
|
|
|
|
find/search - open search wizard
|
|
|
|
find - open search wizard
|
|
|
|
rm - remove entry
|
|
|
|
rm - remove entry
|
|
|
|
gen - generate a password or username
|
|
|
|
gen - generate a password or username
|
|
|
|
strength - check password strength
|
|
|
|
strength - check password strength
|
|
|
@ -204,7 +204,7 @@ version - print current version
|
|
|
|
quit - quit the program
|
|
|
|
quit - quit the program
|
|
|
|
|
|
|
|
|
|
|
|
""")
|
|
|
|
""")
|
|
|
|
elif command[0] == 's' or command[0] == 'f':
|
|
|
|
elif command[0] == 'f':
|
|
|
|
find()
|
|
|
|
find()
|
|
|
|
elif command[0] == 'l':
|
|
|
|
elif command[0] == 'l':
|
|
|
|
ls()
|
|
|
|
ls()
|
|
|
@ -215,7 +215,7 @@ quit - quit the program
|
|
|
|
elif command == 'ed':
|
|
|
|
elif command == 'ed':
|
|
|
|
edit()
|
|
|
|
edit()
|
|
|
|
elif command[0] == 'v':
|
|
|
|
elif command[0] == 'v':
|
|
|
|
print("keyvault: v1.0.4")
|
|
|
|
print("keyvault: v1.0.5")
|
|
|
|
elif command[0] == 'g':
|
|
|
|
elif command[0] == 'g':
|
|
|
|
gen()
|
|
|
|
gen()
|
|
|
|
elif command[0] == 's':
|
|
|
|
elif command[0] == 's':
|
|
|
|