MCPcopy Create free account
hub / github.com/dagger/dagger / relativeTo

Function relativeTo

cmd/codegen/common.go:20–30  ·  view source on GitHub ↗
(basepath string, tarpath string)

Source from the content-addressed store, hash-verified

18)
19
20func relativeTo(basepath string, tarpath string) (string, error) {
21 basepath, err := filepath.Abs(basepath)
22 if err != nil {
23 return "", err
24 }
25 tarpath, err = filepath.Abs(tarpath)
26 if err != nil {
27 return "", err
28 }
29 return filepath.Rel(basepath, tarpath)
30}
31
32func getGlobalConfig(ctx context.Context, alwaysConnect bool) (generator.Config, error) {
33 cfg := generator.Config{

Callers 2

GenerateTypeDefsFunction · 0.85
GenerateModuleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected