mirror of
https://github.com/go-task/task.git
synced 2024-12-12 10:45:49 +02:00
e40d2eec9e
* feat: add task location data to json output * feat: add root taskfile location to --json output
19 lines
252 B
Go
19 lines
252 B
Go
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,
|
|
}
|
|
}
|