aboutsummaryrefslogtreecommitdiffstats
path: root/executables/bin/get-password
diff options
context:
space:
mode:
Diffstat (limited to 'executables/bin/get-password')
-rwxr-xr-xexecutables/bin/get-password36
1 files changed, 0 insertions, 36 deletions
diff --git a/executables/bin/get-password b/executables/bin/get-password
deleted file mode 100755
index 3b83bb7..0000000
--- a/executables/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 "$@"