MCPcopy Create free account
hub / github.com/celer-pkg/celer / GetPortPath

Function GetPortPath

pkgs/dirs/dirs.go:67–69  ·  view source on GitHub ↗

GetPortPath returns the port.toml file path with first-letter classification. For example: GetPortPath("glog", "0.6.0") returns "ports/g/glog/0.6.0/port.toml"

(name, version string)

Source from the content-addressed store, hash-verified

65// GetPortPath returns the port.toml file path with first-letter classification.
66// For example: GetPortPath("glog", "0.6.0") returns "ports/g/glog/0.6.0/port.toml"
67func GetPortPath(name, version string) string {
68 return filepath.Join(GetPortDir(name, version), "port.toml")
69}
70
71// ParentDir return the parent directory of path.
72func ParentDir(path string, levels int) string {

Callers 4

initBuildConfigMethod · 0.92
resolveProjectPortMethod · 0.92
TestCreateCmdFunction · 0.92

Calls 1

GetPortDirFunction · 0.85

Tested by 2

TestCreateCmdFunction · 0.74