From 156656c16d4302d059221a06eb7c1bd460e41fe9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Wed, 12 Oct 2011 23:01:10 +0300 Subject: Split/rename many completions into per-command files. --- completions/mailman | 121 ---------------------------------------------------- 1 file changed, 121 deletions(-) (limited to 'completions/mailman') diff --git a/completions/mailman b/completions/mailman index ba1d08c7..1f8aa951 100644 --- a/completions/mailman +++ b/completions/mailman @@ -5,19 +5,6 @@ _mailman_lists() COMPREPLY=( $( compgen -W '$( list_lists -b )' -- "$cur" ) ) } -_list_lists() -{ - local cur prev words cword - _init_completion || return - - if [[ "$cur" == -* ]]; then - COMPREPLY=( $( compgen -W '--advertised --virtual-host-overview \ - --bare --help' -- "$cur" ) ) - fi - -} && -complete -F _list_lists list_lists - _add_members() { local cur prev words cword split @@ -143,20 +130,6 @@ _sync_members() } && complete -F _sync_members sync_members -_unshunt() -{ - local cur prev words cword - _init_completion || return - - if [[ "$cur" == -* ]]; then - COMPREPLY=( $( compgen -W '--help' -- "$cur" ) ) - else - _filedir -d - fi - -} && -complete -F _unshunt unshunt - _list_admins() { local cur prev words cword @@ -352,19 +325,6 @@ _arch() } && complete -F _arch arch -_cleanarch() -{ - local cur prev words cword - _init_completion || return - - if [[ "$cur" == -* ]]; then - COMPREPLY=( $( compgen -W '--status --dry-run --quiet \ - --help' -- "$cur" ) ) - fi - -} && -complete -F _cleanarch cleanarch - _inject() { local cur prev words cword split @@ -388,21 +348,6 @@ _inject() } && complete -F _inject inject -_dumpdb() -{ - local cur prev words cword - _init_completion || return - - if [[ "$cur" == -* ]]; then - COMPREPLY=( $( compgen -W '--marshal --pickle --noprint \ - --help' -- "$cur" ) ) - else - _filedir - fi - -} && -complete -F _dumpdb dumpdb - _check_db() { local cur prev words cword @@ -417,72 +362,6 @@ _check_db() } && complete -F _check_db check_db -_check_perms() -{ - local cur prev words cword - _init_completion || return - - if [[ "$cur" == -* ]]; then - COMPREPLY=( $( compgen -W '-f -v -h' -- "$cur" ) ) - fi - -} && -complete -F _check_perms check_perms - -_genaliases() -{ - local cur prev words cword - _init_completion || return - - if [[ "$cur" == -* ]]; then - COMPREPLY=( $( compgen -W '--quiet --help' -- "$cur" ) ) - fi - -} && -complete -F _genaliases genaliases - -_mmsitepass() -{ - local cur prev words cword - _init_completion || return - - if [[ "$cur" == -* ]]; then - COMPREPLY=( $( compgen -W '--listcreator --help' -- "$cur" ) ) - fi - -} && -complete -F _mmsitepass mmsitepass - -_qrunner() -{ - local cur prev words cword split - _init_completion -s || return - - $split && return 0 - - if [[ "$cur" == -* ]]; then - COMPREPLY=( $( compgen -W '--runner --once \ - --list --verbose --subproc --help' -- "$cur" ) ) - fi - -} && -complete -F _qrunner qrunner - -_mailmanctl() -{ - local cur prev words cword - _init_completion || return - - if [[ "$cur" == -* ]]; then - COMPREPLY=( $( compgen -W '--no-restart --run-as-user \ - --stale-lock-cleanup --quiet --help' -- "$cur" ) ) - else - COMPREPLY=( $( compgen -W 'start stop restart reopen' -- "$cur" ) ) - fi - -} && -complete -F _mailmanctl mailmanctl - # Local variables: # mode: shell-script # sh-basic-offset: 4 -- cgit v1.2.1