mirror of
https://github.com/go-task/task.git
synced 2026-06-29 23:55:18 +00:00
fix(completion): support --global flag in zsh completion (#2574)
This commit is contained in:
@@ -33,6 +33,10 @@ function __task_list() {
|
||||
cmd+=(--taskfile "$taskfile")
|
||||
fi
|
||||
|
||||
# Check if global flag is set
|
||||
if (( ${+opt_args[(i)-g|--global]} )); then
|
||||
cmd+=(--global)
|
||||
fi
|
||||
|
||||
if output=$("${cmd[@]}" $_GO_TASK_COMPLETION_LIST_OPTION 2>/dev/null); then
|
||||
enabled=1
|
||||
|
||||
Reference in New Issue
Block a user