Description
My use case involved including a utility based taskfile aliased as infra. When using the taskfile, accessing the tasks under it require either adding the infra: prefix in the CLI or creating a mirroring task in the main taskfile.
I propose having the ability to set a default namespace that will allow calling tasks from included taskfile without requiring to use their name/alias.
version: '3'
includes:
infra: ./infra
default_namespaces:
- infra
Then when invoking task it will look for tasks in the default namespace even without using the prefix.
This will also allow overriding included tasks if the main taskfile has a task with the same name as the included taskfile.
Description
My use case involved including a utility based taskfile aliased as
infra. When using the taskfile, accessing the tasks under it require either adding theinfra:prefix in the CLI or creating a mirroring task in the main taskfile.I propose having the ability to set a default namespace that will allow calling tasks from included taskfile without requiring to use their name/alias.
Then when invoking
taskit will look for tasks in the default namespace even without using the prefix.This will also allow overriding included tasks if the main taskfile has a task with the same name as the included taskfile.