mirror of
https://github.com/go-task/task.git
synced 2025-11-06 09:09:13 +02:00
Allow calling a task of the root Taskfile from within an included Taskfile
Fixes #161
This commit is contained in:
@@ -66,5 +66,8 @@ func Merge(t1, t2 *Taskfile, namespaces ...string) error {
|
||||
}
|
||||
|
||||
func taskNameWithNamespace(taskName string, namespaces ...string) string {
|
||||
if strings.HasPrefix(taskName, ":") {
|
||||
return strings.TrimPrefix(taskName, ":")
|
||||
}
|
||||
return strings.Join(append(namespaces, taskName), NamespaceSeparator)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user