feat: update password retrieval command to use new 1Password syntax
Some checks failed
Nix Format Check / check-format (push) Failing after 37s

This commit is contained in:
Menno van Leeuwen 2025-03-12 12:43:04 +01:00
parent 7e4bc76015
commit 4c957dd458
Signed by: vleeuwenmenno
SSH Key Fingerprint: SHA256:OJFmjANpakwD3F2Rsws4GLtbdz1TJ5tkQF0RZmF0TRE

View File

@ -15,7 +15,7 @@ def get_password():
op_cmd = "op" op_cmd = "op"
# Try to get the password # Try to get the password
success, output = run_command([op_cmd, "item", "get", "Dotfiles Secrets", "--fields", "password"]) success, output = run_command([op_cmd, "read", "op://j7nmhqlsjmp2r6umly5t75hzb4/Dotfiles Secrets/password"])
if not success: if not success:
printfe("red", "Failed to fetch password from 1Password.") printfe("red", "Failed to fetch password from 1Password.")