mirror of
https://github.com/spf13/cobra
synced 2024-12-27 14:57:06 +00:00
Merge pull request #179 from eparis/init_comp
Check for _init_completion not_init_completionS
This commit is contained in:
commit
2e6a428921
1 changed files with 1 additions and 1 deletions
|
@ -199,7 +199,7 @@ func postscript(out *bytes.Buffer, name string) {
|
|||
fmt.Fprintf(out, "__start_%s()\n", name)
|
||||
fmt.Fprintf(out, `{
|
||||
local cur prev words cword
|
||||
if declare -F _init_completions >/dev/null 2>&1; then
|
||||
if declare -F _init_completion >/dev/null 2>&1; then
|
||||
_init_completion -s || return
|
||||
else
|
||||
__my_init_completion || return
|
||||
|
|
Loading…
Reference in a new issue