mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-24 14:36:42 +02:00
36 lines
No EOL
863 B
Text
36 lines
No EOL
863 B
Text
#compdef taskwarrior-tui
|
|
|
|
autoload -U is-at-least
|
|
|
|
_taskwarrior-tui() {
|
|
typeset -A opt_args
|
|
typeset -a _arguments_options
|
|
local ret=1
|
|
|
|
if is-at-least 5.2; then
|
|
_arguments_options=(-s -S -C)
|
|
else
|
|
_arguments_options=(-s -C)
|
|
fi
|
|
|
|
local context curcontext="$curcontext" state line
|
|
_arguments "${_arguments_options[@]}" \
|
|
'-c+[Sets a custom config file]' \
|
|
'--config=[Sets a custom config file]' \
|
|
'-r+[Sets default report]' \
|
|
'--report=[Sets default report]' \
|
|
'-h[Print help information]' \
|
|
'--help[Print help information]' \
|
|
'-V[Print version information]' \
|
|
'--version[Print version information]' \
|
|
&& ret=0
|
|
|
|
}
|
|
|
|
(( $+functions[_taskwarrior-tui_commands] )) ||
|
|
_taskwarrior-tui_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'taskwarrior-tui commands' commands "$@"
|
|
}
|
|
|
|
_taskwarrior-tui "$@" |