|
|
@ -58,7 +58,8 @@ public class PasswordManager implements PasswordManagerInterface { |
|
|
|
sb.append("\nciip Gruppe 8 - Password Manager\n\n"); |
|
|
|
|
|
|
|
sb.append("Menu:\n"); |
|
|
|
sb.append("- list vaults: l:\n"); |
|
|
|
sb.append("- list vaults: l\n"); |
|
|
|
sb.append("- create new vault: v\n"); |
|
|
|
sb.append("- select vault: v x (replace x with vault id)\n"); |
|
|
|
sb.append("- exit: e\n"); |
|
|
|
|
|
|
@ -70,7 +71,9 @@ public class PasswordManager implements PasswordManagerInterface { |
|
|
|
running = false; |
|
|
|
} else if (input.equals("l")) { |
|
|
|
listVaults(); |
|
|
|
} else if (input.startsWith("v")) { |
|
|
|
} else if (input.equals("v")) { |
|
|
|
createNewVault(); |
|
|
|
} else if (input.startsWith("v")) { |
|
|
|
String vaultAction = (input.replace('v', ' ')).trim(); |
|
|
|
int vaultId = -1; |
|
|
|
|
|
|
|