MCPcopy Create free account
hub / github.com/rilldata/rill / normalizeProjectPath

Function normalizeProjectPath

cli/cmd/env/env.go:29–39  ·  view source on GitHub ↗

normalizeProjectPath normalizes a project path provided by the user

(projectPath string)

Source from the content-addressed store, hash-verified

27
28// normalizeProjectPath normalizes a project path provided by the user
29func normalizeProjectPath(projectPath string) (string, error) {
30 res, err := fileutil.ExpandHome(projectPath)
31 if err != nil {
32 return "", err
33 }
34 res, err = filepath.Abs(res)
35 if err != nil {
36 return "", err
37 }
38 return res, nil
39}

Callers 2

PushCmdFunction · 0.85
PullCmdFunction · 0.85

Calls 1

ExpandHomeFunction · 0.92

Tested by

no test coverage detected