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

@@ -42,6 +42,8 @@
on failure, improving visibility in workflow summaries (#2568 by @vmaerten).
- Fixed a bug where `ignore_error` was ignored when using `task:` to call
another task (#2552, #363 by @trulede).
- Fixed Zsh completion not suggesting global tasks when using `-g`/`--global`
flag (#1574, #2574 by @vmaerten).
## v3.45.5 - 2025-11-11

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