File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ _comp_cmd_curl()
30
30
--sasl-authzid | --service-name | --socks5-gssapi-service | \
31
31
--speed-limit | --speed-time | --telnet-option | --tftp-blksize | \
32
32
--time-cond | --tls13-ciphers | --tlspassword | --tlsuser | \
33
- --url | --user | --user-agent | --version | --write-out | \
34
- -${noargopts} [CFmQreYytzuAVw ])
33
+ --url | --user | --user-agent | --version | \
34
+ -${noargopts} [CFmQreYytzuAV ])
35
35
return
36
36
;;
37
37
--cacert | --cert | --proxy-cacert | --proxy-cert | -${noargopts} E)
@@ -50,10 +50,11 @@ _comp_cmd_curl()
50
50
_comp_compgen_filedir crl
51
51
return
52
52
;;
53
- --data | --data-ascii | --data-binary | --data-urlencode | --header | \
54
- --proxy-header | -${noargopts} [dH ])
53
+ --data | --data-ascii | --data-binary | --data-urlencode | --json | \
54
+ --header | -- proxy-header | --write-out | - ${noargopts} [dHw ])
55
55
if [[ $cur == \@ * ]]; then
56
56
_comp_compgen -c " ${cur: 1} " filedir
57
+ _comp_compgen -a -c " ${cur: 1} " -- -W ' -'
57
58
if [[ ${# COMPREPLY[@]} -eq 1 && -d ${COMPREPLY[0]} ]]; then
58
59
COMPREPLY[0]+=/
59
60
compopt -o nospace
Original file line number Diff line number Diff line change @@ -20,7 +20,8 @@ def test_4(self, completion):
20
20
21
21
@pytest .mark .complete ("curl --data @" , cwd = "shared/default/foo.d" )
22
22
def test_data_atfile (self , completion ):
23
- assert completion == "foo"
23
+ assert "@foo" in completion
24
+ assert "@-" in completion
24
25
25
26
@pytest .mark .complete ("curl --data @foo." , cwd = "shared/default" )
26
27
def test_data_atfile_dir (self , completion ):
You can’t perform that action at this time.
0 commit comments