Skip to content

Commit 5993a92

Browse files
committed
Typos in custom_completions
1 parent 810e77b commit 5993a92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

book/custom_completions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Custom completions
22

3-
Custom completions allow you to mix together two features of Nushell: custom commands and completions. With them, you're able to create commands that handle the completions for positional parameters and flag parameters. These custom completions work both custom commands and [known external, or `extern`, commands](externs.md).
3+
Custom completions allow you to mix together two features of Nushell: custom commands and completions. With them, you're able to create commands that handle the completions for positional parameters and flag parameters. These custom completions work both for [custom commands](custom_commands.md) and [known external, or `extern`, commands](externs.md).
44

55
There are two parts to a custom command: the command that handles a completion and attaching this command to the type of another command using `@`.
66

@@ -39,7 +39,7 @@ module commands {
3939
}
4040
```
4141

42-
In our module, we've chosen to export only the custom command `my-command` but not the custom completion `animals`. This allows users of this module to call the command, and even use the custom completion logic, without having access the the custom completion. This keeps the API cleaner, while still offering all the same benefits.
42+
In our module, we've chosen to export only the custom command `my-command` but not the custom completion `animals`. This allows users of this module to call the command, and even use the custom completion logic, without having access to the custom completion. This keeps the API cleaner, while still offering all the same benefits.
4343

4444
This is possible because custom completion tags using `@` are locked-in as the command is first parsed.
4545

0 commit comments

Comments
 (0)