MCPcopy Index your code
hub / github.com/dagger/dagger / initializeCore

Function initializeCore

cmd/dagger/module_inspect.go:25–33  ·  view source on GitHub ↗

initializeCore loads the core type definitions only

(ctx context.Context, dag *dagger.Client)

Source from the content-addressed store, hash-verified

23
24// initializeCore loads the core type definitions only
25func initializeCore(ctx context.Context, dag *dagger.Client) (rdef *moduleDef, rerr error) {
26 def := &moduleDef{}
27
28 if err := def.loadTypeDefs(ctx, dag); err != nil {
29 return nil, err
30 }
31
32 return def, nil
33}
34
35// initializeWorkspace loads type definitions from the workspace.
36// Modules are already served by the engine at connect time.

Callers 3

registerCommandsMethod · 0.85
InitializeMethod · 0.85
executeMethod · 0.85

Calls 1

loadTypeDefsMethod · 0.95

Tested by

no test coverage detected