mirror of
https://github.com/spf13/cobra
synced 2025-05-06 13:27:26 +00:00
added compdef call to support direct sourcing
as suggested by @corneliusweig
This commit is contained in:
parent
21f39ca07e
commit
50ef1a2a5a
1 changed files with 1 additions and 0 deletions
|
@ -80,6 +80,7 @@ function {{genZshFuncName .}} {
|
||||||
#compdef _{{.Name}} {{.Name}}
|
#compdef _{{.Name}} {{.Name}}
|
||||||
|
|
||||||
{{template "selectCmdTemplate" .}}
|
{{template "selectCmdTemplate" .}}
|
||||||
|
compdef _{{.Name}} {{.Name}}
|
||||||
{{end}}
|
{{end}}
|
||||||
`
|
`
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue