mirror of
https://github.com/spf13/cobra
synced 2024-12-29 15:57:10 +00:00
more documentation tweaks
This commit is contained in:
parent
59726e2b0f
commit
18d7a29987
1 changed files with 2 additions and 2 deletions
|
@ -76,14 +76,14 @@ Nushell:
|
|||
# 1. Edit the nushell config file:
|
||||
> config nu
|
||||
# 2. Copy the completer to at the end of the file.
|
||||
# 3. Add a section like the following below the cobra_completer:
|
||||
# 3. Add a section like the following below at the end of the file:
|
||||
$env.config.completions.external = {
|
||||
enable: true
|
||||
max_results: 100
|
||||
completer: $cobra_completer
|
||||
}
|
||||
|
||||
NOTE: This completer will work for all cobra based commands. More information can be found in the [External Completions](https://www.nushell.sh/book/custom_completions.html#custom-descriptions) section of the Nushell book. Information on setting up more than one external completer can be found [Multiple completer](https://www.nushell.sh/cookbook/external_completers.html#multiple-completer) of the Nushell cookbook.
|
||||
NOTE: This completer will work for all cobra based commands. More information can be found in the [External Completions](https://www.nushell.sh/book/custom_completions.html#custom-descriptions) section of the Nushell book. Information on setting up more than one external completer can be found in the [Multiple completer](https://www.nushell.sh/cookbook/external_completers.html#multiple-completer) section of the Nushell cookbook.
|
||||
|
||||
`,cmd.Root().Name()),
|
||||
DisableFlagsInUseLine: true,
|
||||
|
|
Loading…
Reference in a new issue