MCPcopy Create free account
hub / github.com/driangle/taskmd / resolveRelativeTo

Function resolveRelativeTo

apps/cli/internal/cli/web.go:217–222  ·  view source on GitHub ↗

resolveRelativeTo makes a path absolute relative to a base directory.

(path, base string)

Source from the content-addressed store, hash-verified

215
216// resolveRelativeTo makes a path absolute relative to a base directory.
217func resolveRelativeTo(path, base string) string {
218 if filepath.IsAbs(path) {
219 return filepath.Clean(path)
220 }
221 return filepath.Clean(filepath.Join(base, path))
222}
223
224// loadProjectPhases reads phases from a project's .taskmd.yaml.
225func loadProjectPhases(projectPath string) []web.PhaseInfo {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected