File tree Expand file tree Collapse file tree 7 files changed +13
-15
lines changed Expand file tree Collapse file tree 7 files changed +13
-15
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ _comp_cmd_config_list()
15
15
[[ $was_split ]] && return
16
16
17
17
if [[ $cur == -* ]]; then
18
- COMPREPLY=( $( compgen -W ' --inputfile --outputfile --checkonly
19
- --verbose --help' -- " $cur " ) )
18
+ _comp_compgen -- -W ' --inputfile --outputfile --checkonly
19
+ --verbose --help'
20
20
else
21
21
# Prefer `list_lists` in the same dir as command
22
22
local pathcmd
Original file line number Diff line number Diff line change @@ -31,8 +31,8 @@ _comp_cmd_cpio()
31
31
[[ $was_split ]] && return
32
32
33
33
if (( cword == 1 )) ; then
34
- COMPREPLY=( $( compgen - W ' -o --create -i --extract -p --pass-through
35
- -? -- help --license --usage --version' -- " $cur " ) )
34
+ _comp_compgen -- - W ' -o --create -i --extract -p --pass-through -?
35
+ -- help --license --usage --version'
36
36
else
37
37
case ${words[1]} in
38
38
-o | --create)
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ _comp_cmd_ipmitool()
19
19
local -a files
20
20
_comp_expand_glob files ' /dev/ipmi* /dev/ipmi/* /dev/ipmidev/*'
21
21
(( ${# files[@]} )) &&
22
- COMPREPLY=( $( compgen - W ' "${files[@]##*([^0-9])}"' -X ' ![0-9]*' -- " $cur " ) )
22
+ _comp_compgen -- - W ' "${files[@]##*([^0-9])}"' -X ' ![0-9]*'
23
23
return
24
24
;;
25
25
-* I)
Original file line number Diff line number Diff line change @@ -198,8 +198,8 @@ _comp_cmd_koji()
198
198
search)
199
199
case $nth in
200
200
1)
201
- COMPREPLY=( $( compgen - W ' package build tag target
202
- user host rpm' -- " $cur " ) )
201
+ _comp_compgen -- - W ' package build tag target user host
202
+ rpm'
203
203
;;
204
204
esac
205
205
;;
Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ _comp_cmd_list_members()
23
23
[[ $was_split ]] && return
24
24
25
25
if [[ $cur == -* ]]; then
26
- COMPREPLY=( $( compgen - W ' --output --regular --digest --nomail
27
- --fullnames -- preserve --help' -- " $cur " ) )
26
+ _comp_compgen -- - W ' --output --regular --digest --nomail --fullnames
27
+ --preserve --help'
28
28
else
29
29
# Prefer `list_lists` in the same dir as command
30
30
local pathcmd
Original file line number Diff line number Diff line change @@ -45,8 +45,7 @@ _comp_cmd_qemu()
45
45
return
46
46
;;
47
47
-net)
48
- COMPREPLY=($( compgen -W ' nic user tap socket vde none dump' \
49
- -- " $cur " ) )
48
+ _comp_compgen -- -W ' nic user tap socket vde none dump'
50
49
return
51
50
;;
52
51
-serial | -parallel | -monitor)
Original file line number Diff line number Diff line change @@ -182,8 +182,8 @@ _comp_cmd_ssh__suboption()
182
182
_comp_compgen_filedir so
183
183
;;
184
184
preferredauthentications)
185
- COMPREPLY=( $( compgen -W ' gssapi-with-mic host-based publickey
186
- keyboard-interactive password' -- " $cur " ) )
185
+ _comp_compgen -- -W ' gssapi-with-mic host-based publickey
186
+ keyboard-interactive password'
187
187
;;
188
188
protocol)
189
189
local protocols=($( _comp_cmd_ssh__query " $1 " protocol-version) )
@@ -211,8 +211,7 @@ _comp_cmd_ssh__suboption()
211
211
_comp_compgen -- -W ' DAEMON USER AUTH LOCAL{0..7}'
212
212
;;
213
213
tunnel)
214
- COMPREPLY=($( compgen -W ' yes no point-to-point ethernet' \
215
- -- " $cur " ) )
214
+ _comp_compgen -- -W ' yes no point-to-point ethernet'
216
215
;;
217
216
updatehostkeys | verifyhostkeydns)
218
217
_comp_compgen -- -W ' yes no ask'
You can’t perform that action at this time.
0 commit comments