mirror of
https://github.com/spf13/cobra
synced 2024-12-28 07:17:06 +00:00
Added useful info for setting up bash autocompletion. (#384)
This commit is contained in:
parent
1dd5ff2e11
commit
dc208f4211
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ func main() {
|
|||
}
|
||||
```
|
||||
|
||||
That will get you completions of subcommands and flags. If you make additional annotations to your code, you can get even more intelligent and flexible behavior.
|
||||
`out.sh` will get you completions of subcommands and flags. Copy it to `/etc/bash_completion.d/` as described [here](https://debian-administration.org/article/316/An_introduction_to_bash_completion_part_1) and reset your terminal to use autocompletion. If you make additional annotations to your code, you can get even more intelligent and flexible behavior.
|
||||
|
||||
## Creating your own custom functions
|
||||
|
||||
|
|
Loading…
Reference in a new issue