mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2025-09-08 07:18:47 +00:00
Merge pull request #593 from PR0M3TH3AN/codex/update-key/value-label-to-indicate-key
Clarify key/value label
This commit is contained in:
@@ -1453,7 +1453,7 @@ class PasswordManager:
|
|||||||
parent_fingerprint=parent_fp,
|
parent_fingerprint=parent_fp,
|
||||||
child_fingerprint=child_fp,
|
child_fingerprint=child_fp,
|
||||||
)
|
)
|
||||||
label = input("Label: ").strip()
|
label = input("Label (key): ").strip()
|
||||||
if not label:
|
if not label:
|
||||||
print(colored("Error: Label cannot be empty.", "red"))
|
print(colored("Error: Label cannot be empty.", "red"))
|
||||||
return
|
return
|
||||||
@@ -1987,7 +1987,7 @@ class PasswordManager:
|
|||||||
child_fingerprint=child_fp,
|
child_fingerprint=child_fp,
|
||||||
)
|
)
|
||||||
print(colored("\n[+] Edit Menu:", "green"))
|
print(colored("\n[+] Edit Menu:", "green"))
|
||||||
print(colored("L. Edit Label", "cyan"))
|
print(colored("L. Edit Label (key)", "cyan"))
|
||||||
if entry_type == EntryType.PASSWORD.value:
|
if entry_type == EntryType.PASSWORD.value:
|
||||||
print(colored("U. Edit Username", "cyan"))
|
print(colored("U. Edit Username", "cyan"))
|
||||||
print(colored("R. Edit URL", "cyan"))
|
print(colored("R. Edit URL", "cyan"))
|
||||||
@@ -1998,7 +1998,7 @@ class PasswordManager:
|
|||||||
if not choice:
|
if not choice:
|
||||||
break
|
break
|
||||||
if choice == "l":
|
if choice == "l":
|
||||||
new_label = input("New label: ").strip()
|
new_label = input("New label (key): ").strip()
|
||||||
if new_label:
|
if new_label:
|
||||||
self.entry_manager.modify_entry(index, label=new_label)
|
self.entry_manager.modify_entry(index, label=new_label)
|
||||||
self.is_dirty = True
|
self.is_dirty = True
|
||||||
@@ -2328,7 +2328,7 @@ class PasswordManager:
|
|||||||
value = entry.get("value", "")
|
value = entry.get("value", "")
|
||||||
notes = entry.get("notes", "")
|
notes = entry.get("notes", "")
|
||||||
archived = entry.get("archived", False)
|
archived = entry.get("archived", False)
|
||||||
print(colored(f"Retrieving value for '{label}'.", "cyan"))
|
print(colored(f"Retrieving value for key '{label}'.", "cyan"))
|
||||||
if notes:
|
if notes:
|
||||||
print(colored(f"Notes: {notes}", "cyan"))
|
print(colored(f"Notes: {notes}", "cyan"))
|
||||||
tags = entry.get("tags", [])
|
tags = entry.get("tags", [])
|
||||||
@@ -3056,7 +3056,7 @@ class PasswordManager:
|
|||||||
print(color_text(f" Tags: {', '.join(tags)}", "index"))
|
print(color_text(f" Tags: {', '.join(tags)}", "index"))
|
||||||
elif etype == EntryType.KEY_VALUE.value:
|
elif etype == EntryType.KEY_VALUE.value:
|
||||||
print(color_text(" Type: Key/Value", "index"))
|
print(color_text(" Type: Key/Value", "index"))
|
||||||
print(color_text(f" Label: {entry.get('label', '')}", "index"))
|
print(color_text(f" Label (key): {entry.get('label', '')}", "index"))
|
||||||
print(color_text(f" Value: {entry.get('value', '')}", "index"))
|
print(color_text(f" Value: {entry.get('value', '')}", "index"))
|
||||||
notes = entry.get("notes", "")
|
notes = entry.get("notes", "")
|
||||||
if notes:
|
if notes:
|
||||||
|
Reference in New Issue
Block a user