aboutsummaryrefslogtreecommitdiffstats
path: root/.local/bin/get-password
diff options
context:
space:
mode:
authorEugene Triguba <hello@eugenetriguba.com>2026-11-28 20:01:52 -0800
committerEugene Triguba <hello@eugenetriguba.com>2026-11-28 20:01:52 -0800
commita19071df5a6d40269f7a264b68d2600ea93ca7ae (patch)
tree819fa0cce4259ee328de0fdbfa202e51d35ab86b /.local/bin/get-password
parentUpdate nvim plugins (diff)
downloaddotfiles-a19071df5a6d40269f7a264b68d2600ea93ca7ae.zip
Add openbsd dotfilesopenbsd
Diffstat (limited to '.local/bin/get-password')
-rwxr-xr-x.local/bin/get-password36
1 files changed, 0 insertions, 36 deletions
diff --git a/.local/bin/get-password b/.local/bin/get-password
deleted file mode 100755
index 3b83bb7..0000000
--- a/.local/bin/get-password
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/bin/sh
-set -e
-
-VAULT="Private"
-CREDENTIAL=""
-
-main() {
- parse_args "$@"
- op read "op://$VAULT/$CREDENTIAL/password"
-}
-
-parse_args() {
- while [ $# -gt 0 ]; do
- case "$1" in
- --vault)
- VAULT="$2"
- shift 2
- ;;
- --credential)
- CREDENTIAL="$2"
- shift 2
- ;;
- *)
- echo "Usage: $0 [--vault <name>] --credential <name>"
- exit 1
- ;;
- esac
- done
-
- if [ -z "$CREDENTIAL" ]; then
- echo "Invalid or empty CREDENTIAL" >&2
- exit 1
- fi
-}
-
-main "$@"