Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mthbernardes authored Feb 22, 2022
1 parent b4d877d commit 48fe559
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,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 "v3.0.0" :git/sha "47d3321"}' :as clj-watson
$ clojure -Ttools install io.github.clj-holmes/clj-watson '{:git/tag "v3.0.1" :git/sha "b4d877d"}' :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 "v3.0.0" :git/sha "47d3321"}}}' -M -m clj-watson.cli scan -p deps.edn
$ clojure -Sdeps '{:deps {io.github.clj-holmes/clj-watson {:git/tag "v3.0.1" :git/sha "b4d877d"}}}' -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 "v3.0.0" :git/sha "47d3321"}}
{:clj-watson {:extra-deps {io.github.clj-holmes/clj-watson {:git/tag "v3.0.1" :git/sha "b4d877d"}}
:main-opts ["-m" "clj-watson.cli" "scan"]}}}
```

Expand Down Expand Up @@ -126,4 +126,4 @@ clj -X:depstar
```
clj -M:clojure-lsp format
clj -M:clojure-lsp clean-ns
```
```

0 comments on commit 48fe559

Please sign in to comment.