 (ns leiningen.protobuf
+  (:refer-clojure :exclude [compile])
   (:use [clojure.java.shell :only [sh]]
         [clojure.string :only [join]]
         [leiningen.help :only [help-for]]

  (flush)
  (join (.readPassword (System/console))))

(defn fetch []
  (when-not (.exists (io/file srcdir))
    (with-open [stream (.openStream url)]
      (io/copy stream (io/file zipfile)))

  ([project] (println (help-for "protobuf")))
  ([project subtask & args]
     (case subtask
       "install"   (apply install args)
       "uninstall" (apply uninstall args)
       "compile"   (apply compile project args))))