summaryrefslogtreecommitdiffstats
path: root/completions/config_list
diff options
context:
space:
mode:
Diffstat (limited to 'completions/config_list')
-rw-r--r--completions/config_list27
1 files changed, 27 insertions, 0 deletions
diff --git a/completions/config_list b/completions/config_list
new file mode 100644
index 0000000..1807e33
--- /dev/null
+++ b/completions/config_list
@@ -0,0 +1,27 @@
+# mailman config_list completion -*- shell-script -*-
+
+_config_list()
+{
+ local cur prev words cword split
+ _init_completion -s || return
+
+ case $prev in
+ -i | -o | --inputfile | --outputfile)
+ _filedir
+ return
+ ;;
+ esac
+
+ $split && return
+
+ if [[ $cur == -* ]]; then
+ COMPREPLY=($(compgen -W '--inputfile --outputfile --checkonly
+ --verbose --help' -- "$cur"))
+ else
+ _xfunc list_lists _mailman_lists
+ fi
+
+} &&
+ complete -F _config_list config_list
+
+# ex: filetype=sh