mirror of
https://github.com/go-task/task.git
synced 2026-07-08 22:46:07 +00:00
feat: add task location data to json output (#1056)
* feat: add task location data to json output * feat: add root taskfile location to --json output
This commit is contained in:
@@ -65,7 +65,9 @@ func Merge(t1, t2 *Taskfile, includedTaskfile *IncludedTaskfile, namespaces ...s
|
||||
}
|
||||
|
||||
// Add the task to the merged taskfile
|
||||
t1.Tasks[taskNameWithNamespace(k, namespaces...)] = task
|
||||
taskNameWithNamespace := taskNameWithNamespace(k, namespaces...)
|
||||
task.Task = taskNameWithNamespace
|
||||
t1.Tasks[taskNameWithNamespace] = task
|
||||
}
|
||||
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user