Commit 9058bfaf authored by Eric Timmons's avatar Eric Timmons
Browse files

Add sync to client

parent 371901e0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@
   (:file "install" :depends-on ("package" "proc"))
   (:file "package")
   (:file "proc" :depends-on ("package"))
   (:file "sync" :depends-on ("package" "proc"))
   (:file "ui" :depends-on ("package"))
   (:file "update" :depends-on ("package" "proc"))
   (:file "version" :depends-on ("package" "proc"))))
+1 −0
Original line number Diff line number Diff line
@@ -52,6 +52,7 @@
           #:release-diff-project-name
           #:reload-config
           #:reresolve-requirements-and-reload-config
           #:sync
           #:update))

(in-package #:clpm-client)

client/sync.lisp

0 → 100644
+17 −0
Original line number Diff line number Diff line
;;;; Interface to clpm sync
;;;;
;;;; This software is part of CLPM. See README.org for more information. See
;;;; LICENSE for license information.

(in-package #:clpm-client)

(defun sync (&key sources)
  "Sync a set of SOURCES. If no sources are listed, all are synced."
  (with-clpm-proc (proc)
    (clpm-proc-print
     proc
     `(progn
        (sync :sources ',(ensure-list sources))
        t))
    (clpm-proc-read proc)
    (values)))