mirror of
https://github.com/go-task/task.git
synced 2026-06-25 13:46:13 +00:00
refactor: slightly improved NewBaseNode API
This commit is contained in:
@@ -13,11 +13,11 @@ type (
|
||||
}
|
||||
)
|
||||
|
||||
func NewBaseNode(opts ...NodeOption) *BaseNode {
|
||||
func NewBaseNode(dir string, opts ...NodeOption) *BaseNode {
|
||||
node := &BaseNode{
|
||||
parent: nil,
|
||||
optional: false,
|
||||
dir: "",
|
||||
dir: dir,
|
||||
}
|
||||
|
||||
// Apply options
|
||||
|
||||
Reference in New Issue
Block a user