(dir string)
| 80 | } |
| 81 | |
| 82 | func (node *FileNode) ResolveDir(dir string) (string, error) { |
| 83 | path, err := execext.ExpandLiteral(dir) |
| 84 | if err != nil { |
| 85 | return "", err |
| 86 | } |
| 87 | |
| 88 | if filepathext.IsAbs(path) { |
| 89 | return path, nil |
| 90 | } |
| 91 | |
| 92 | // NOTE: Uses the directory of the entrypoint (Taskfile), not the current working directory |
| 93 | // This means that files are included relative to one another |
| 94 | entrypointDir := filepath.Dir(node.entrypoint) |
| 95 | return filepathext.SmartJoin(entrypointDir, path), nil |
| 96 | } |
nothing calls this directly
no test coverage detected