mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Fix small TODO and move main function to bottom
This commit is contained in:
parent
ba1b6819a0
commit
9d3bbe744d
1 changed files with 3 additions and 9 deletions
|
@ -65,12 +65,6 @@ _task_zshcmds=( ${(f)"$(task _zshcommands)"} sentinel:sentinel:sentinel )
|
|||
|
||||
_task_aliases=($(task _aliases))
|
||||
|
||||
_task() {
|
||||
_arguments -s -S \
|
||||
"*::task default:_task_default"
|
||||
return 0
|
||||
}
|
||||
|
||||
local -a reply args word
|
||||
word=$'[^\0]#\0'
|
||||
|
||||
|
@ -262,8 +256,7 @@ _task_subcommands() {
|
|||
## first level completion => task sub-command completion
|
||||
(( $+functions[_task_default] )) ||
|
||||
_task_default() {
|
||||
# TODO: Fix indentation
|
||||
local cmd ret=1
|
||||
local cmd ret=1
|
||||
|
||||
integer i=1
|
||||
while (( i < $#words ))
|
||||
|
@ -289,4 +282,5 @@ _task_default() {
|
|||
return ret
|
||||
}
|
||||
|
||||
_task "$@"
|
||||
_arguments -s -S \
|
||||
"*::task default:_task_default"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue