NewReader constructs a new Taskfile [Reader] using the given Node and options.
(opts ...ReaderOption)
| 25 | // NewReader constructs a new Taskfile [Reader] using the given Node and |
| 26 | // options. |
| 27 | func NewReader(opts ...ReaderOption) *Reader { |
| 28 | r := &Reader{ |
| 29 | debugFunc: nil, |
| 30 | } |
| 31 | r.Options(opts...) |
| 32 | return r |
| 33 | } |
| 34 | |
| 35 | // Options loops through the given [ReaderOption] functions and applies them to |
| 36 | // the [Reader]. |