You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/alternative-tools/clojure-cli/basic-repl.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ Use `clj` when you want to run a repl (or preferably use [rebel readline](rebel-
14
14
15
15
`clj` command in a terminal window starts a Clojure REPL and shows the version of Clojure used. The command does not need to be in a directory containing a Clojure project.
Copy file name to clipboardExpand all lines: docs/alternative-tools/clojure-cli/set-namespace-on-repl-startup.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,14 +11,14 @@ Switching to a specific namespace in the REPL allows calling functions by name,
11
11
12
12
To require and switch to a namespace on startup, use the `clojure` or `clj` commands with the --eval option to run the specific commands. The --repl option will ensure the repl starts.
Copy file name to clipboardExpand all lines: docs/alternative-tools/leiningen/index.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ Install the Leiningen tool using the specific instructions for your Operating Sy
17
17
=== "Linux"
18
18
[Download the lein script](https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein) to your local `bin` directory. Then make the `lein` script executable and run `lein` to download the full version.
@@ -29,7 +29,7 @@ Install the Leiningen tool using the specific instructions for your Operating Sy
29
29
=== "Homebrew"
30
30
If you have [Homebrew](https://brew.sh/) installed, run the following command in a terminal window.
31
31
32
-
```bash
32
+
```shell
33
33
brew install leiningen
34
34
```
35
35
@@ -51,7 +51,7 @@ Install the Leiningen tool using the specific instructions for your Operating Sy
51
51
52
52
If you have [Chocolatey](https://chocolatey.org/) installed, add the [Leiningen package](https://chocolatey.org/packages/Lein) by running the following command in a terminal window.
53
53
54
-
```bash
54
+
```shell
55
55
choco install lein
56
56
```
57
57
@@ -71,7 +71,7 @@ Install the Leiningen tool using the specific instructions for your Operating Sy
71
71
72
72
Check Leiningen is working by running `lein` command in a terminal
73
73
74
-
```bash
74
+
```shell
75
75
lein help
76
76
```
77
77
@@ -104,13 +104,13 @@ Leiningen automatically includes the `test` directory when running, so no additi
Installing a tool adds an EDN configuration file using the name of the tool in `$XDG_HOME/.clojure/tools/` or `$HOME/.clojure/tools/` directory.
191
191
192
192
Once a tool is installed, run by using the name of the tool.
193
193
194
-
```bash
194
+
```shell
195
195
clojure -Tantq outdated
196
196
```
197
197
198
198
Options to the tool are passed as key/value pairs (as the tool is called by clojure.exec)
199
199
200
-
```bash
200
+
```shell
201
201
clojure -Tantq outdated :upgrade true
202
202
```
203
203
204
204
`-Ttools remove` will remove the configuration of the tool of the given name
205
205
206
-
```bash
206
+
```shell
207
207
clojure -Ttools remove :tool antq
208
208
```
209
209
@@ -265,13 +265,13 @@ If `:git` or `:local/root` dependencies are defined, the respective code will be
265
265
266
266
Prepare flag by itself download dependencies defined in the `:deps` section of the `deps.edn` file of the current project.
267
267
268
-
```bash
268
+
```shell
269
269
clojure -P
270
270
```
271
271
272
272
Including one or more aliases will preparing all the dependencies from every alias specified
273
273
274
-
```bash
274
+
```shell
275
275
clojure -P -M:env/dev:lib/hotload:repl/cider
276
276
```
277
277
@@ -290,7 +290,7 @@ As prepare is essentially a dry run, then the `clojure` command does not call `:
290
290
291
291
The `:env/dev` alias adds "dev" directory to the class path, [typically used to add a `user.clj` that will automatically load code from the `user` namespace defined in that file](https://practical.li/clojure/clojure-cli/projects/configure-repl-startup.html).
292
292
293
-
```bash
293
+
```shell
294
294
clojure -A:env/dev
295
295
```
296
296
@@ -310,7 +310,7 @@ Aliases can be chained together and their configuration will be merged
0 commit comments