Skip to content

Commit c14a2fe

Browse files
authored
Merge pull request #1201 from wleczny/uninstall-completions-command
Add install and uninstall completions documentation
2 parents ff1951a + 148ee66 commit c14a2fe

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

website/docs/_advanced_install.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,8 @@ If Scala CLI was installed via the installation script, you can uninstall it wit
485485
```bash
486486
scala-cli uninstall
487487
```
488+
489+
If you have installed Scala CLI completions into your shell, `uninstall` command uninstalls them by running [`uninstall-completions`](/docs/commands/completions) command under the hood.
488490
</TabItem>
489491

490492
<TabItem value="manual-u">
@@ -596,6 +598,8 @@ If Scala CLI was installed via the installation script, you can uninstall it wit
596598
```bash
597599
scala-cli uninstall
598600
```
601+
602+
If you have installed Scala CLI completions into your shell, `uninstall` command uninstalls them by running [`uninstall-completions`](/docs/commands/completions) command under the hood.
599603
</TabItem>
600604

601605
<TabItem value="manual-u">

website/docs/commands/completions.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
title: Completions
3+
sidebar_position: 19
4+
---
5+
6+
The completions commands can be used to install Scala CLI completions into your shell and uninstall them.
7+
8+
## Installing completions
9+
To install completions run the `install-completions` command:
10+
11+
```bash ignore
12+
scala-cli install-completions
13+
```
14+
15+
## Uninstalling completions
16+
To uninstall completions run the `uninstall-completions` command:
17+
18+
```bash ignore
19+
scala-cli uninstall-completions
20+
```

0 commit comments

Comments
 (0)