File tree Expand file tree Collapse file tree 2 files changed +21
-9
lines changed Expand file tree Collapse file tree 2 files changed +21
-9
lines changed Original file line number Diff line number Diff line change 33 :url " https://github.com/narkisr/octo-rewind"
44 :license {:name " Apache License, Version 2.0" :url " http://www.apache.org/licenses/LICENSE-2.0.html" }
55 :dependencies [[org.clojure/clojure " 1.9.0" ]
6+ [cli-matic " 0.3.3" ]
67 [clj-yaml " 0.4.0" ]
7- [irresponsible/tentacles " 0.6.1 " ]
8+ [irresponsible/tentacles " 0.6.3 " ]
89 [org.clojure/core.incubator " 0.1.4" ]
910 [me.raynes/fs " 1.4.6" ]
10- [clj-http " 3.8.0 " ]
11- [org.clojure/tools.trace " 0.7.9 " ]
11+ [clj-http " 3.9.1 " ]
12+ [org.clojure/tools.trace " 0.7.10 " ]
1213 [com.taoensso/timbre " 4.1.4" ]]
1314 :plugins [
14- [jonase/eastwood " 0.2.5" ]
15- [lein-cljfmt " 0.5.6" ]
16- [lein-kibit " 0.1.6" ]
15+ [jonase/eastwood " 0.3.3" ]
16+ [lein-cljfmt " 0.6.3" ]
1717 [lein-ancient " 0.6.15" :exclusions [org.clojure/clojure]]
1818 [lein-tag " 0.1.0" ]
1919 [lein-set-version " 0.3.0" ]
3737 }
3838
3939 :dependencies [[org.clojure/tools.namespace " 0.2.10" ]
40- [redl " 0.2.4" ] [org.clojure/tools.trace " 0.7.9" ]]
40+ [redl " 0.2.4" ]
41+ [org.clojure/tools.trace " 0.7.10" ]]
4142 :injections [(require '[redl core complete])]
4243 :source-paths [" dev" " src" ]
4344 :test-paths []
Original file line number Diff line number Diff line change 4343(defn match [[k m]]
4444 [(find-fn k m) m])
4545
46+ (defn help []
47+ (println "
48+ Usage:
49+ octo sync {config} - download remote repo changes locally.
50+ octo push {config} - push local repositries into our backup location, repos are bundled and packaged before being pushed.
51+ octo pull {config} - pull backup from remote backup destination to our local workspace folder.
52+ octo stale {config} - print a report listing stale repositries (repositries which code was updated in a while).
53+ octo help - print this help message
54+
55+ {config} - All the commands expect an edn configuration file as input" ))
56+
4657(defn -main [& args]
4758 (try
4859 (case (first args)
4960 " sync" (-> [:synch (c args)] match workspace auth run)
5061 " push" (-> [:push (c args)] match workspace push- run)
5162 " pull" (-> [:pull (c args)] match workspace push- run)
5263 " stale" (-> [:stale (c args)] match auth run)
53- " version " (version )
54- nil (version ))
64+ " help " (help )
65+ nil (help ))
5566 (catch Exception e
5667 (error e)
5768 (System/exit 1 ))))
You can’t perform that action at this time.
0 commit comments