Add split-deps helper
This commit is contained in:
parent
7640c4119c
commit
4df40cb0de
1 changed files with 6 additions and 0 deletions
|
@ -204,6 +204,12 @@
|
|||
(defn usage []
|
||||
(println "marginalia <src1> ... <src-n>"))
|
||||
|
||||
(defn split-deps [deps]
|
||||
(for [d (.split deps ";")
|
||||
:let [[group artifact version] (.split d ":")]]
|
||||
[(if (= group artifact) artifact (str group "/" artifact))
|
||||
version]))
|
||||
|
||||
(defn run-marginalia
|
||||
"Default generation: given a collection of filepaths in a project, find the .clj
|
||||
files at these paths and, if Clojure source files are found:
|
||||
|
|
Loading…
Reference in a new issue