Skip to content

Commit 510b1a2

Browse files
fix: enable task name suggestion when --download arg is supplied
1 parent bfaa5dd commit 510b1a2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

completion/zsh/_task

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ _task() {
9090

9191
if __task_is_experiment_enabled "REMOTE_TASKFILES"; then
9292
standard_args+=(
93-
'(--offline)--offline[use only local or cached Taskfiles]'
93+
'(--offline --download)--offline[use only local or cached Taskfiles]'
9494
'(--timeout)--timeout[timeout for remote Taskfile downloads]:duration: '
9595
'(--expiry)--expiry[cache expiry duration]:duration: '
9696
)
@@ -110,9 +110,11 @@ _task() {
110110

111111
# Experimental operations (dynamically added based on enabled experiments)
112112
if __task_is_experiment_enabled "REMOTE_TASKFILES"; then
113+
standard_args+=(
114+
'(--offline --clear-cache)--download[download remote Taskfile]'
115+
)
113116
operation_args+=(
114-
'--download[download remote Taskfile]'
115-
'(*)--clear-cache[clear remote Taskfile cache]'
117+
'(* --download)--clear-cache[clear remote Taskfile cache]'
116118
)
117119
fi
118120

0 commit comments

Comments
 (0)