Remove dependency to _init_completion

examples from https://devmanual.gentoo.org/tasks-reference/completion/index.html
This commit is contained in:
Fabrice Reix 2025-02-22 09:01:51 +01:00 committed by hurl-bot
parent acb47274c2
commit 27100e3ea3
No known key found for this signature in database
GPG Key ID: 1283A2B4A0DCAF8D
3 changed files with 3 additions and 6 deletions

View File

@ -21,8 +21,7 @@ _"""
+ name
+ """()
{
local cur prev words cword
_init_completion || return
cur="${COMP_WORDS[COMP_CWORD]}"
if [[ $cur == -* ]]; then
COMPREPLY=($(compgen -W '"""

View File

@ -1,8 +1,7 @@
# hurl(1) completion -*- shell-script -*-
_hurl()
{
local cur prev words cword
_init_completion || return
cur="${COMP_WORDS[COMP_CWORD]}"
if [[ $cur == -* ]]; then
COMPREPLY=($(compgen -W '--aws-sigv4 --cacert --cert --key --color --compressed --connect-timeout --connect-to --continue-on-error --cookie --cookie-jar --curl --delay --error-format --file-root --location --location-trusted --from-entry --glob --header --http1.0 --http1.1 --http2 --http3 --ignore-asserts --include --insecure --interactive --ipv4 --ipv6 --jobs --json --limit-rate --max-filesize --max-redirs --max-time --netrc --netrc-file --netrc-optional --no-color --no-output --noproxy --output --parallel --path-as-is --proxy --repeat --report-html --report-json --report-junit --report-tap --resolve --retry --retry-interval --secret --ssl-no-revoke --test --to-entry --unix-socket --user --user-agent --variable --variables-file --verbose --very-verbose --help --version' -- "$cur"))

View File

@ -1,8 +1,7 @@
# hurlfmt(1) completion -*- shell-script -*-
_hurlfmt()
{
local cur prev words cword
_init_completion || return
cur="${COMP_WORDS[COMP_CWORD]}"
if [[ $cur == -* ]]; then
COMPREPLY=($(compgen -W '--check --color --in-place --in --no-color --output --out --standalone --help --version' -- "$cur"))