Explorar o código

bitwarden: add sync command

Sean Farley %!s(int64=7) %!d(string=hai) anos
pai
achega
2f97f56933
Modificáronse 1 ficheiros con 6 adicións e 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)