Rename update task to update-in.
This commit is contained in:
parent
b42d5eab73
commit
ed9004ada4
2 changed files with 4 additions and 4 deletions
2
NEWS.md
2
NEWS.md
|
@ -2,7 +2,7 @@
|
|||
|
||||
## 2.1.0 / ???
|
||||
|
||||
* Add update task for arbitrary project map transformations. (Phil Hagelberg)
|
||||
* Add update-in task for arbitrary project map changes. (Phil Hagelberg)
|
||||
* Warn when version ranges are detected. (Nelson Morris)
|
||||
* Add support for msys on Windows machines. (megri)
|
||||
* Allow use of :mirrors when building jars/uberjars. (Tim McCormack)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
(ns leiningen.update
|
||||
(ns leiningen.update-in
|
||||
(:require [leiningen.core.main :as main]))
|
||||
|
||||
(defn ^:higher-order update
|
||||
(defn ^:higher-order update-in
|
||||
"Perform arbitrary transformations on your project map.
|
||||
|
||||
Acts a lot like calling `clojure.core/update-in` on your project map
|
||||
|
@ -11,7 +11,7 @@ together like \":repl-options:port\". Provide the arguments to f
|
|||
(which must be a resolvable var) followed by \"--\", and then the
|
||||
task name and arguments to the task:
|
||||
|
||||
$ lein update :dependencies conj \"[slamhound \\\"1.1.3\\\"]\" -- repl"
|
||||
$ lein update-in :dependencies conj \"[slamhound \\\"1.1.3\\\"]\" -- repl"
|
||||
[project keys f & args]
|
||||
(let [keys-vec (map keyword (rest (.split keys ":")))
|
||||
update-args (map read-string (take-while (partial not= "--") args))
|
Loading…
Reference in a new issue