Honor aliases in with-profile. Fixes #598.
This commit is contained in:
parent
f4b0b19f0f
commit
d124c96d85
1 changed files with 4 additions and 1 deletions
|
@ -6,7 +6,10 @@
|
|||
"Apply the given task with a comma-separated profile list."
|
||||
[project profiles task-name & args]
|
||||
(let [profiles (map keyword (.split profiles ","))
|
||||
project (project/merge-profiles project profiles)]
|
||||
project (project/merge-profiles project profiles)
|
||||
task-name (or (@main/aliases task-name)
|
||||
(get (:aliases project) task-name)
|
||||
task-name)]
|
||||
(main/apply-task task-name project args)))
|
||||
|
||||
(defn ^:no-project-needed with-profile
|
||||
|
|
Loading…
Reference in a new issue