mirror of
https://github.com/spf13/cobra
synced 2025-05-05 21:07:24 +00:00
Also fix the same typo in zsh_completions.go
This commit is contained in:
parent
5f584a0a02
commit
b725185a2a
1 changed files with 1 additions and 1 deletions
|
@ -202,7 +202,7 @@ _%[1]s()
|
||||||
_arguments '*:filename:'"$filteringCmd"
|
_arguments '*:filename:'"$filteringCmd"
|
||||||
elif [ $((directive & shellCompDirectiveFilterDirs)) -ne 0 ]; then
|
elif [ $((directive & shellCompDirectiveFilterDirs)) -ne 0 ]; then
|
||||||
# File completion for directories only
|
# File completion for directories only
|
||||||
local subDir
|
local subdir
|
||||||
subdir="${completions[1]}"
|
subdir="${completions[1]}"
|
||||||
if [ -n "$subdir" ]; then
|
if [ -n "$subdir" ]; then
|
||||||
__%[1]s_debug "Listing directories in $subdir"
|
__%[1]s_debug "Listing directories in $subdir"
|
||||||
|
|
Loading…
Add table
Reference in a new issue