Skip to content

Commit 4aa28b3

Browse files
committed
clean bash
1 parent dbc76d4 commit 4aa28b3

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

completion/bash/task.bash

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,6 @@
22

33
_GO_TASK_COMPLETION_LIST_OPTION='--list-all'
44

5-
function _task_experiment_flags()
6-
{
7-
local flags=""
8-
local experiments=$(task --experiments 2>/dev/null)
9-
10-
if echo "$experiments" | grep -q "^\* GENTLE_FORCE:.*on"; then
11-
flags="$flags --force-all"
12-
fi
13-
14-
if echo "$experiments" | grep -q "^\* REMOTE_TASKFILES:.*on"; then
15-
flags="$flags --download --offline --timeout --clear-cache --expiry"
16-
fi
17-
18-
echo "$flags"
19-
}
20-
215
function _task()
226
{
237
local cur prev words cword
@@ -55,7 +39,7 @@ function _task()
5539
# Handle normal options.
5640
case "$cur" in
5741
-*)
58-
COMPREPLY=( $( compgen -W "$(_parse_help $1) $(_task_experiment_flags)" -- $cur ) )
42+
COMPREPLY=( $( compgen -W "$(_parse_help $1)" -- $cur ) )
5943
return 0
6044
;;
6145
esac

0 commit comments

Comments
 (0)