mirror of
https://github.com/go-task/task.git
synced 2026-06-23 12:45:52 +00:00
feat: root remote taskfiles
This commit is contained in:
@@ -9,6 +9,7 @@ type (
|
||||
BaseNode struct {
|
||||
parent Node
|
||||
optional bool
|
||||
dir string
|
||||
}
|
||||
)
|
||||
|
||||
@@ -16,6 +17,7 @@ func NewBaseNode(opts ...NodeOption) *BaseNode {
|
||||
node := &BaseNode{
|
||||
parent: nil,
|
||||
optional: false,
|
||||
dir: "",
|
||||
}
|
||||
|
||||
// Apply options
|
||||
@@ -45,3 +47,7 @@ func WithOptional(optional bool) NodeOption {
|
||||
func (node *BaseNode) Optional() bool {
|
||||
return node.optional
|
||||
}
|
||||
|
||||
func (node *BaseNode) Dir() string {
|
||||
return node.dir
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user