Skip to content

Commit

Permalink
feat: Add --check-clojure-tools option
Browse files Browse the repository at this point in the history
cf. #146
  • Loading branch information
liquidz committed Feb 28, 2022
1 parent 23e08b7 commit c47b56d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
5 changes: 3 additions & 2 deletions src/antq/core.clj
Expand Up @@ -87,7 +87,8 @@
[nil "--verbose"]
[nil "--force"]
[nil "--download"]
[nil "--ignore-locals"]])
[nil "--ignore-locals"]
[nil "--check-clojure-tools"]])

(defn skip-artifacts?
[dep options]
Expand Down Expand Up @@ -210,7 +211,7 @@
(when-not (skip "leiningen") (dep.lein/load-deps %))
(when-not (skip "babashka") (dep.bb/load-deps %))
(when-not (skip "gradle") (dep.gradle/load-deps %))
(when-not (skip "clojure-cli-tool") (dep.clj.tool/load-deps)))
(when (:check-clojure-tools options) (dep.clj.tool/load-deps)))
(distinct (:directory options)))))

(defn mark-only-newest-version-flag
Expand Down
23 changes: 12 additions & 11 deletions src/antq/tool.clj
Expand Up @@ -33,17 +33,18 @@
"Point out outdated dependencies.
Options:
- :exclude <array of string>
- :focus <array of string>
- :skip <array of string>
- :error-format <string>
- :reporter <string>
- :directory <array of string>
- :upgrade <boolean>
- :verbose <boolean>
- :force <boolean>
- :download <boolean>
- :ignore-locals <boolean>"
- :exclude <array of string>
- :focus <array of string>
- :skip <array of string>
- :error-format <string>
- :reporter <string>
- :directory <array of string>
- :upgrade <boolean>
- :verbose <boolean>
- :force <boolean>
- :download <boolean>
- :ignore-locals <boolean>
- :check-clojure-tools <boolean>"
[& [options]]
(let [options (prepare-options options)]
(binding [log/*verbose* (:verbose options false)]
Expand Down

0 comments on commit c47b56d

Please sign in to comment.