瀏覽代碼

bitwarden: add sync command

Sean Farley 7 年之前
父節點
當前提交
2f97f56933
共有 1 個文件被更改,包括 6 次插入0 次删除
  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)