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

Method getExportedObject

sdk/typescript/src/module/executor.ts:24–32  ·  view source on GitHub ↗
(object: string)

Source from the content-addressed store, hash-verified

22 ) {}
23
24 private getExportedObject(object: string): any {
25 const key = object as keyof Module
26 const module = this.modules.find((m) => m[key] !== undefined)
27 if (!module) {
28 throw new FunctionNotFound(`Object ${object} not found`)
29 }
30
31 return module[key]
32 }
33
34 hasObject(object: string): boolean {
35 return !!this.daggerModule.objects[object]

Callers 2

buildClassMethod · 0.95
getResultMethod · 0.95

Calls 1

findMethod · 0.80

Tested by

no test coverage detected