Browse Source

bitwarden: add method to list folders

Sean Farley 7 years ago
parent
commit
43b7d07188
1 changed files with 5 additions and 0 deletions
  1. 5 0
      bitwarden.el

+ 5 - 0
bitwarden.el

@@ -319,6 +319,11 @@ Returns a vector of hashtables of the results."
              (json-key-type 'string)
              (json (json-read-from-string result)))
            json))))
+
+;;;###autoload
+(defun bitwarden-folders ()
+  "List bitwarden folders."
+  (let* ((ret (bitwarden--auto-cmd (list "list" "folders")))
          (result (bitwarden--handle-message ret t)))
     (when result
       (let* ((json-object-type 'hash-table)