Remove dependency to _init_completion
examples from https://devmanual.gentoo.org/tasks-reference/completion/index.html
This commit is contained in:
parent
acb47274c2
commit
27100e3ea3
|
|
@ -21,8 +21,7 @@ _"""
|
|||
+ name
|
||||
+ """()
|
||||
{
|
||||
local cur prev words cword
|
||||
_init_completion || return
|
||||
cur="${COMP_WORDS[COMP_CWORD]}"
|
||||
|
||||
if [[ $cur == -* ]]; then
|
||||
COMPREPLY=($(compgen -W '"""
|
||||
|
|
|
|||
|
|
@ -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"))
|
||||
|
|
|
|||
|
|
@ -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"))
|
||||
|
|
|
|||
Loading…
Reference in New Issue