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