MCPcopy Index your code
hub / github.com/jetify-com/devbox / DocsURL

Method DocsURL

internal/devpkg/package.go:690–699  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

688}
689
690func (p *Package) DocsURL() string {
691 if p.IsRunX() {
692 path, _, _ := strings.Cut(p.RunXPath(), "@")
693 return fmt.Sprintf("https://www.github.com/%s", path)
694 }
695 if p.IsDevboxPackage {
696 return fmt.Sprintf("https://www.nixhub.io/packages/%s", p.CanonicalName())
697 }
698 return ""
699}
700
701// GetOutputNames returns the names of the nix package outputs. Outputs can be
702// specified in devbox.json package fields or as part of the flake reference.

Callers

nothing calls this directly

Calls 3

IsRunXMethod · 0.95
RunXPathMethod · 0.95
CanonicalNameMethod · 0.95

Tested by

no test coverage detected