Procházet zdrojové kódy

bitwarden: add sync command

Sean Farley před 7 roky
rodič
revize
2f97f56933
1 změnil soubory, kde provedl 6 přidání a 0 odebrání
  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 (json-read-from-string result)))
         json))))
         json))))
 
 
+(defun bitwarden-sync ()
+  "Sync local store with server."
+  (interactive)
+  (let ((res (bitwarden--auto-cmd (list "sync"))))
+    (message (nth 1 res))))
+
 ;================================= auth-source =================================
 ;================================= auth-source =================================
 
 
 (defun bitwarden-auth-source-search (&rest spec)
 (defun bitwarden-auth-source-search (&rest spec)