iris/completions/zsh

30 lines
977 B
Plaintext
Executable File

#compdef _iris iris
# This is a zsh completion script for iris
# It should be copied to /usr/share/zsh/functions/Completion/Unix/_iris
function _iris {
local context state state_descr line
typeset -A opt_args
_arguments -C \
"--debug[Print warnings and debug informtation during use]" \
"-d[Dump entire message corpus out]" \
"--dump[Dump entire message corpus out]" \
"-h[Show help information]" \
"--help[Show help information]" \
"-i[Enter interactive mode (default)]" \
"--interactive[Enter interactive mode (default)]" \
"--mark-all-read[Mark every message in Iris as \"read\".]"
"-s[Display Iris version and message stats]" \
"--stats[Display Iris version and message stats]" \
"-f[Use the specified test file for messages]:f:->f" \
"--test-file[Use the specified test file for messages]:f:->f" \
"-v[Display the current version of Iris]" \
"--version[Display the current version of Iris]" \
if [ "$state" = "f" ]; then
_files
fi
}