Skip to content

Commit

Permalink
feat(curl): Complete files for --json, --write-out
Browse files Browse the repository at this point in the history
  • Loading branch information
yedayak committed Aug 4, 2024
1 parent 9c72cf8 commit 62c0ecb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions completions/curl
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ _comp_cmd_curl()
--sasl-authzid | --service-name | --socks5-gssapi-service | \
--speed-limit | --speed-time | --telnet-option | --tftp-blksize | \
--time-cond | --tls13-ciphers | --tlspassword | --tlsuser | \
--url | --user | --user-agent | --version | --write-out | \
-${noargopts}[CFmQreYytzuAVw])
--url | --user | --user-agent | --version | \
-${noargopts}[CFmQreYytzuAV])
return
;;
--cacert | --cert | --proxy-cacert | --proxy-cert | -${noargopts}E)
Expand All @@ -50,8 +50,8 @@ _comp_cmd_curl()
_comp_compgen_filedir crl
return
;;
--data | --data-ascii | --data-binary | --data-urlencode | --header | \
--proxy-header | -${noargopts}[dH])
--data | --data-ascii | --data-binary | --data-urlencode | --json | \
--header | --proxy-header | --write-out | -${noargopts}[dHw])
if [[ $cur == \@* ]]; then
_comp_compgen -c "${cur:1}" filedir
_comp_compgen -a -c "${cur:1}" -- -W '-'
Expand Down

0 comments on commit 62c0ecb

Please sign in to comment.