Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix version number #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions password-store-otp.el
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
;; Filename: password-store-otp.el
;; Author: Daniel Barreto
;; Created: Tue Aug 22 13:46:01 2017 (+0200)
;; Version: 0.1.0
;; Version: 0.1.5
;; Package-Requires: ((emacs "25") (s "1.9.0") (password-store "0.1"))
;; URL: https://github.com/volrath/password-store-otp.el
;; Keywords: tools, pass
Expand Down Expand Up @@ -103,12 +103,12 @@ after `password-store-timeout' seconds."
(defun password-store-otp-token (entry)
"Return an OTP token from ENTRY."
(password-store-otp--related-error
(password-store--run "otp" entry)))
(password-store--run "otp" entry)))

(defun password-store-otp-uri (entry)
"Return an OTP URI from ENTRY."
(password-store-otp--related-error
(password-store--run "otp" "uri" entry)))
(password-store--run "otp" "uri" entry)))

(defun password-store-otp-qrcode (entry &optional type)
"Display a QR code from ENTRY's OTP, using TYPE."
Expand All @@ -117,7 +117,7 @@ after `password-store-timeout' seconds."
type
(shell-quote-argument (password-store-otp--get-uri entry))))
(password-store-otp--related-error
(password-store--run "otp" "uri" "-q" entry))))
(password-store--run "otp" "uri" "-q" entry))))

(defun password-store-otp-add-uri (method entry uri)
"Using METHOD, add in ENTRY a URI.
Expand All @@ -127,7 +127,7 @@ primary \"pass otp\" command line verb."
(unless (memq method '(append insert))
(error (format "Unrecognized method %s" method)))
(password-store-otp--related-error
(password-store--run "otp" "--help")) ;; make sure otp extension is installed.
(password-store--run "otp" "--help")) ;; make sure otp extension is installed.
(message "%s" (shell-command-to-string (format "echo %s | %s otp %s -f %s"
(shell-quote-argument uri)
password-store-executable
Expand Down