Skip to content
Snippets Groups Projects
Commit 8a491f16 authored by Svend Sorensen's avatar Svend Sorensen
Browse files

Reorder interactive function to match order of helper functions

parent 648e53b8
No related branches found
No related tags found
No related merge requests found
......@@ -185,6 +185,13 @@ after `password-store-timeout' seconds."
(message "Copied %s to the kill ring. Will clear in %s seconds." entry password-store-timeout)
(run-at-time password-store-timeout nil 'password-store-clear)))
;;;###autoload
(defun password-store-insert (entry password)
"Insert a new ENTRY containing PASSWORD."
(interactive (list (read-string "Password entry: ")
(read-passwd "Password: " t)))
(message (shell-command-to-string (format "echo %s | %s insert -m -f %s" password password-store-executable entry))))
;;;###autoload
(defun password-store-generate (entry &optional password-length)
"Generate a new password for ENTRY with PASSWORD-LENGTH.
......@@ -199,19 +206,18 @@ Default PASSWORD-LENGTH is `password-store-password-length'."
(password-store--run-generate entry password-length t)
nil)
;;;###autoload
(defun password-store-insert (entry password)
"Insert a new ENTRY containing PASSWORD."
(interactive (list (read-string "Password entry: ")
(read-passwd "Password: " t)))
(message (shell-command-to-string (format "echo %s | %s insert -m -f %s" password password-store-executable entry))))
;;;###autoload
(defun password-store-remove (entry)
"Remove existing password for ENTRY."
(interactive (list (password-store--completing-read)))
(message (password-store--run-remove entry t)))
;;;###autoload
(defun password-store-version ()
"Show version of pass executable."
(interactive)
(message (password-store--run-version)))
;;;###autoload
(defun password-store-url (entry)
"Browse URL stored in ENTRY.
......@@ -225,12 +231,6 @@ avoid sending a password to the browser."
(browse-url url)
(error "%s" "String does not look like a URL"))))
;;;###autoload
(defun password-store-version ()
"Show version of pass executable."
(interactive)
(message (password-store--run-version)))
(provide 'password-store)
;;; password-store.el ends here
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment