Explorar el Código

bitwarden: add sync command

Sean Farley hace 7 años
padre
commit
2f97f56933
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  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)