Files
git.taskfile.build/bin/get-pass-from-keepass
T
Janik von Rotz 71b3e85580 feat(cli): add scripts for KeePass password management
- Add `get-pass-from-keepass` script to retrieve passwords from KeePass entries
- Add `save-pass-to-keepass` script to store passwords in KeePass entries
- Update library.md documentation with new KeePass utility functions
- Include usage examples and descriptions for new password management tools
2025-11-14 16:44:29 +01:00

12 lines
311 B
Bash
Executable File

#!/usr/bin/env bash
get-pass-from-keepass() {
if [[ -z "$1" ]]; then echo "\$1 is empty."; exit; fi
local keepass_entry="$1"
keepassxc-cli show --show-protected --attributes Password \
--key-file "$KEEPASS_DATABASE_KEY_FILE" \
"$KEEPASS_DATABASE_FILE" \
"$keepass_entry"
}