mirror of
https://github.com/go-task/task.git
synced 2025-06-15 00:15:10 +02: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:
18
taskfile/location.go
Normal file
18
taskfile/location.go
Normal file
@ -0,0 +1,18 @@
|
||||
package taskfile
|
||||
|
||||
type Location struct {
|
||||
Line int
|
||||
Column int
|
||||
Taskfile string
|
||||
}
|
||||
|
||||
func (l *Location) DeepCopy() *Location {
|
||||
if l == nil {
|
||||
return nil
|
||||
}
|
||||
return &Location{
|
||||
Line: l.Line,
|
||||
Column: l.Column,
|
||||
Taskfile: l.Taskfile,
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user