File tree Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change 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-
215function _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
You can’t perform that action at this time.
0 commit comments