mirror of
https://github.com/spf13/cobra
synced 2025-05-05 21:07:24 +00:00
Untranspose __custom_func in docs table
This commit is contained in:
parent
beaa4630e5
commit
2e00cabe43
1 changed files with 4 additions and 4 deletions
|
@ -25,10 +25,10 @@ That will get you completions of subcommands and flags. If you make additional a
|
||||||
The `BashCompletionFunction` member can be used to define bash functions which generate completion suggestions. Within `BashCompletionFunction` you can define some of the following four bash functions, which should modify `COMPREPLY` as appropriate.
|
The `BashCompletionFunction` member can be used to define bash functions which generate completion suggestions. Within `BashCompletionFunction` you can define some of the following four bash functions, which should modify `COMPREPLY` as appropriate.
|
||||||
|
|
||||||
|
|
||||||
| Function | Runs always | Runs when no earlier handler produced completion results |
|
| Function | Runs always | Runs when no earlier handler produced completion results |
|
||||||
| ------- | ----------- | -------------------------------------------------------- |
|
| ------------------------------- | ------------------------------------- | -------------------------------------------------------- |
|
||||||
| **Runs for Command** | `__custom_unconditional_command_func` | `__custom_command_func` |
|
| **Runs for Command** | `__custom_unconditional_command_func` | `__custom_command_func` |
|
||||||
| **Runs for Command & children** | `__custom_func` | `__custom_unconditional_func` |
|
| **Runs for Command & children** | `__custom_unconditional_func` | `__custom_func` |
|
||||||
|
|
||||||
Some more actual code that works in kubernetes:
|
Some more actual code that works in kubernetes:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue