In some directory, there is a task with desc, so the execution result of task is --list.
In the home directory and in directories that use the global ~/Taskfile.yml, there are no tasks with desc, so the execution result of task should be --list-all.
in some dir
$ task
task: Available tasks for this project:
* description: task description. (aliases: desc)
in home dir
$ task
task: No tasks with description available. Try --list-all to list all tasks
task: Available tasks for this project:
* default: (aliases: ls)
* list-all: (aliases: la)
* test:special-variables: (aliases: test:sv)
task: Failed to run task "default": exit status 1
in home dir and ignore_error: true. so .EXIT_CODE is empty
$ task
task: No tasks with description available. Try --list-all to list all tasks
Task version: v3.39.2 (h1:Zt7KXHmMNq5xWZ1ihphDb+n2zYLCo4BdRe09AnMMIgA=)
Linux 5.15.153.1-microsoft-standard-WSL2 #1 SMP Fri Mar 29 23:14:13 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
# Windows 11 + WSL2 + Ubuntu 24.04 LTSIn v3.39.2, EXIT_CODE seem to be empty if
ignore_error: true
. I would like the error message to be suppressed or EXIT_CODE to be passed.somedir/Taskfile.yml
I have multiple repository directories. I want to share the default task in a global Taskfile.
~/Taskfile.yml
In some directory, there is a task with desc, so the execution result of
task
is--list
.In the home directory and in directories that use the global ~/Taskfile.yml, there are no tasks with desc, so the execution result of
task
should be--list-all
.in some dir
in home dir
in home dir and ignore_error: true. so .EXIT_CODE is empty
any ideas?