Skip to content

Commit

Permalink
Add neil dep add entrypoint (#19)
Browse files Browse the repository at this point in the history
Exactly the same as `neil dep add` - but fits with `neil dep versions`.

Co-authored-by: Teodor Heggelund <git@teod.eu>
  • Loading branch information
teodorlu and teodorlu committed Apr 3, 2022
1 parent c3319be commit 5163db6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion neil
Expand Up @@ -388,7 +388,8 @@ dep
(let [opts (parse-opts opts)
opts (with-default-deps-edn opts)]
(case subcommand
"versions" (dep-versions opts))))
"versions" (dep-versions opts)
"add" (add-dep opts))))

(defn -main []
(let [[subcommand & args] *command-line-args*]
Expand Down
3 changes: 2 additions & 1 deletion src/babashka/neil.clj
Expand Up @@ -379,7 +379,8 @@ dep
(let [opts (parse-opts opts)
opts (with-default-deps-edn opts)]
(case subcommand
"versions" (dep-versions opts))))
"versions" (dep-versions opts)
"add" (add-dep opts))))

(defn -main []
(let [[subcommand & args] *command-line-args*]
Expand Down

0 comments on commit 5163db6

Please sign in to comment.