mirror of
https://github.com/go-task/task.git
synced 2026-05-18 05:05:20 +02:00
fix(completion): support --global flag in zsh completion (#2574)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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