fix(completion): support --global flag in zsh completion (#2574)

This commit is contained in:
Valentin Maerten
2025-12-14 15:51:15 +01:00
committed by GitHub
parent 5a27d04655
commit 3ad4604c36
2 changed files with 6 additions and 0 deletions

View File

@@ -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