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