Skip to content

Commit

Permalink
Insert a 'caution' about restricted --amm option in repl (#2391) (#2403)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaciejG604 authored Sep 19, 2023
1 parent 16f321d commit f43bd39
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion website/docs/commands/repl.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,17 @@ Scala CLI by default uses the normal Scala REPL.

If you prefer to use the [Ammonite REPL](https://ammonite.io/#Ammonite-REPL), specify `--amm` to launch it rather than the default REPL:

:::caution
Using the Ammonite REPL is restricted and requires setting the `--power` option to be used.
You can pass it explicitly or set it globally by running:

scala-cli config power true
:::

<ChainedSnippets>

```bash ignore
scala-cli repl --amm
scala-cli --power repl --amm
```

```text
Expand Down

0 comments on commit f43bd39

Please sign in to comment.