summaryrefslogtreecommitdiffstats
path: root/completions/uscan
diff options
context:
space:
mode:
Diffstat (limited to 'completions/uscan')
-rw-r--r--completions/uscan23
1 files changed, 12 insertions, 11 deletions
diff --git a/completions/uscan b/completions/uscan
index 441bae3..e82f625 100644
--- a/completions/uscan
+++ b/completions/uscan
@@ -1,33 +1,34 @@
-# uscan completion -*- shell-script -*-
+# uscan completion -*- shell-script -*-
-_uscan()
+_comp_cmd_uscan()
{
- local cur prev words cword split
- _init_completion -s || return
+ local cur prev words cword was_split comp_args
+ _comp_initialize -s -- "$@" || return
case $prev in
--package)
- COMPREPLY=($(_xfunc apt-cache _apt_cache_src_packages))
+ _comp_compgen -x apt-cache sources
return
;;
--watchfile)
- _filedir
+ _comp_compgen_filedir
return
;;
--destdir)
- _filedir -d
+ _comp_compgen_filedir -d
return
;;
- --timeout | --upstream-version | --download-version | --check-dirname-level | --check-dirname-regex)
+ --timeout | --upstream-version | --download-version | \
+ --check-dirname-level | --check-dirname-regex)
COMPREPLY=()
return
;;
esac
- $split && return
+ [[ $was_split ]] && return
- COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur"))
+ _comp_compgen_help
} &&
- complete -F _uscan uscan
+ complete -F _comp_cmd_uscan uscan
# ex: filetype=sh