taskwarrior-tui/completions/_taskwarrior-tui
Dheepak Krishnamurthy 1ec93c0913 WIP
2023-09-25 04:19:48 -04:00

44 lines
1.3 KiB
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[@]}" \
'-d+[Sets the data folder for taskwarrior-tui]:FOLDER: ' \
'--data=[Sets the data folder for taskwarrior-tui]:FOLDER: ' \
'-c+[Sets the config folder for taskwarrior-tui]:FOLDER: ' \
'--config=[Sets the config folder for taskwarrior-tui]:FOLDER: ' \
'--taskdata=[Sets the .task folder using the TASKDATA environment variable for taskwarrior]:FOLDER: ' \
'--taskrc=[Sets the .taskrc file using the TASKRC environment variable for taskwarrior]:FILE: ' \
'-r+[Sets default report]:STRING: ' \
'--report=[Sets default report]:STRING: ' \
'-h[Print help]' \
'--help[Print help]' \
'-V[Print version]' \
'--version[Print version]' \
'::tick-rate:' \
&& ret=0
}
(( $+functions[_taskwarrior-tui_commands] )) ||
_taskwarrior-tui_commands() {
local commands; commands=()
_describe -t commands 'taskwarrior-tui commands' commands "$@"
}
if [ "$funcstack[1]" = "_taskwarrior-tui" ]; then
_taskwarrior-tui "$@"
else
compdef _taskwarrior-tui taskwarrior-tui
fi