MCPcopy Create free account
hub / github.com/go-task/task / ResolveDir

Method ResolveDir

taskfile/node_stdin.go:61–72  ·  view source on GitHub ↗
(dir string)

Source from the content-addressed store, hash-verified

59}
60
61func (node *StdinNode) ResolveDir(dir string) (string, error) {
62 path, err := execext.ExpandLiteral(dir)
63 if err != nil {
64 return "", err
65 }
66
67 if filepathext.IsAbs(path) {
68 return path, nil
69 }
70
71 return filepathext.SmartJoin(node.Dir(), path), nil
72}

Callers

nothing calls this directly

Calls 4

ExpandLiteralFunction · 0.92
IsAbsFunction · 0.92
SmartJoinFunction · 0.92
DirMethod · 0.65

Tested by

no test coverage detected