~nilium/1p

5facb98f8f265d6774edd99f7e52ea78b34f6078 — Noel Cower 5 years ago 3be92fd
Add comment for installing things, clean source

- Add comment for installing stuff with xbps
- Clarify -j flag
- Fix missing newline at EOF
1 files changed, 10 insertions(+), 2 deletions(-)

M 1p
M 1p => 1p +10 -2
@@ 28,6 28,14 @@
# - fex: https://github.com/jordansissel/fex
# - pbcopy or xclip: Clipboard tools.

# With the exception of op, which you must download yourself because
# it's not open source, the necessary tools can be installed through
# xbps:
#
#     # xbps-install jq fzf fex xclip
#
# Your distribution may have similar packages.

if [[ "$1" = -h ]] || [[ "$1" == --help ]]; then
  cat <<EOF 1>&2
Usage: 1p [-h|--help] [-1] [-b|-p|-c|-u|-o|-U|-j] [ACCOUNT] [QUERY...]


@@ 50,7 58,7 @@ FORMATS
-c      Username:password (colon-separated).
-b      Basic authentication. Used in HTTP authentication.
-U      1Password item UUID.
-j      Raw JSON.
-j      1Password item JSON.
EOF
  exit 2
fi


@@ 237,4 245,4 @@ basic)
json)
  query .
  ;;
esac
\ No newline at end of file
esac