Browse Source

bitwarden: add sync command

Sean Farley 7 năm trước cách đây
mục cha
commit
2f97f56933
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      bitwarden.el

+ 6 - 0
bitwarden.el

@@ -354,6 +354,12 @@ search which will call `bitwarden-search' as a convenience."
              (json (json-read-from-string result)))
         json))))
 
+(defun bitwarden-sync ()
+  "Sync local store with server."
+  (interactive)
+  (let ((res (bitwarden--auto-cmd (list "sync"))))
+    (message (nth 1 res))))
+
 ;================================= auth-source =================================
 
 (defun bitwarden-auth-source-search (&rest spec)