Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mthbernardes authored Sep 22, 2022
1 parent e3da1b6 commit 612224d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,18 @@ In order to get the auto remediate suggestion it's necessary to provide a `--sug
# Installation
It's possible to install clj-watson as a clojure tool and invoke it.
```bash
$ clojure -Ttools install io.github.clj-holmes/clj-watson '{:git/tag "v4.0.1" :git/sha "65d928c"}' :as clj-watson
$ clojure -Ttools install io.github.clj-holmes/clj-watson '{:git/tag "v4.1.0" :git/sha "e3da1b6"}' :as clj-watson
$ clojure -Tclj-watson scan '{:output "stdout" :dependency-check-properties nil :fail-on-result true :deps-edn-path "deps.edn" :suggest-fix true :aliases ["*"] :database-strategy "dependency-check"}'
```
It can also be called directly.
```bash
$ clojure -Sdeps '{:deps {io.github.clj-holmes/clj-watson {:git/tag "v4.0.1" :git/sha "65d928c"}}}' -M -m clj-watson.cli scan -p deps.edn
$ clojure -Sdeps '{:deps {io.github.clj-holmes/clj-watson {:git/tag "v4.1.0" :git/sha "e3da1b6"}}}' -M -m clj-watson.cli scan -p deps.edn
```
Or you can just add it to your project `deps.edn`
```clojure
{:deps {}
:aliases
{:clj-watson {:extra-deps {io.github.clj-holmes/clj-watson {:git/tag "v4.0.1" :git/sha "65d928c"}}
{:clj-watson {:extra-deps {io.github.clj-holmes/clj-watson {:git/tag "v4.1.0" :git/sha "e3da1b6"}}
:main-opts ["-m" "clj-watson.cli" "scan"]}}}
```

Expand Down

0 comments on commit 612224d

Please sign in to comment.