You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Helper function to check if an experiment is enabled
25
+
function __task_is_experiment_enabled
26
+
set-l experiment $argv[1]
27
+
__task_get_experiments | string match -qr"^\* $experiment:.*on"
28
+
end
29
+
3
30
function __task_get_tasks --description"Prints all available tasks with their description"--inherit-variable GO_TASK_PROGNAME
4
31
# Check if the global task is requested
5
32
set-l global_task false
@@ -36,19 +63,49 @@ end
36
63
complete-c$GO_TASK_PROGNAME-d'Runs the specified task(s). Falls back to the "default" task if no task name was specified, or lists all tasks if an unknown task name was
37
64
specified.'-xa"(__task_get_tasks)"
38
65
39
-
complete-c$GO_TASK_PROGNAME-s c -l color -d'colored output (default true)'
40
-
complete-c$GO_TASK_PROGNAME-s d -l dir -d'sets directory of execution'
41
-
complete-c$GO_TASK_PROGNAME-l dry -d'compiles and prints tasks in the order that they would be run, without executing them'
42
-
complete-c$GO_TASK_PROGNAME-s f -l force -d'forces execution even when the task is up-to-date'
43
-
complete-c$GO_TASK_PROGNAME-s h -lhelp-d'shows Task usage'
44
-
complete-c$GO_TASK_PROGNAME-s i -l init -d'creates a new Taskfile.yml in the current folder'
45
-
complete-c$GO_TASK_PROGNAME-s l -l list -d'lists tasks with description of current Taskfile'
46
-
complete-c$GO_TASK_PROGNAME-s o -l output -d'sets output style: [interleaved|group|prefixed]'-xa"interleaved group prefixed"
47
-
complete-c$GO_TASK_PROGNAME-s p -l parallel -d'executes tasks provided on command line in parallel'
48
-
complete-c$GO_TASK_PROGNAME-s s -l silent -d'disables echoing'
49
-
complete-c$GO_TASK_PROGNAME-lstatus-d'exits with non-zero exit code if any of the given tasks is not up-to-date'
50
-
complete-c$GO_TASK_PROGNAME-l summary -d'show summary about a task'
51
-
complete-c$GO_TASK_PROGNAME-s t -l taskfile -d'choose which Taskfile to run. Defaults to "Taskfile.yml"'
52
-
complete-c$GO_TASK_PROGNAME-s v -l verbose -d'enables verbose mode'
53
-
complete-c$GO_TASK_PROGNAME-l version -d'show Task version'
54
-
complete-c$GO_TASK_PROGNAME-s w -l watch -d'enables watch of the given task'
66
+
# Standard flags
67
+
complete-c$GO_TASK_PROGNAME-s a -l list-all -d'list all tasks'
68
+
complete-c$GO_TASK_PROGNAME-s c -l color -d'colored output (default true)'
69
+
complete-c$GO_TASK_PROGNAME-s C -l concurrency -d'limit number of concurrent tasks'
70
+
complete-c$GO_TASK_PROGNAME-l completion -d'generate shell completion script'-xa"bash zsh fish powershell"
71
+
complete-c$GO_TASK_PROGNAME-s d -l dir -d'set directory of execution'
72
+
complete-c$GO_TASK_PROGNAME-s n -l dry -d'compile and print tasks without executing'
73
+
complete-c$GO_TASK_PROGNAME-s x -lexit-code -d'pass-through exit code of task command'
74
+
complete-c$GO_TASK_PROGNAME-l experiments -d'list available experiments'
75
+
complete-c$GO_TASK_PROGNAME-s f -l force -d'force execution even when up-to-date'
76
+
complete-c$GO_TASK_PROGNAME-s g -l global -d'run global Taskfile from home directory'
77
+
complete-c$GO_TASK_PROGNAME-s h -lhelp-d'show help'
78
+
complete-c$GO_TASK_PROGNAME-s i -l init -d'create new Taskfile'
0 commit comments