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

Method GetTypeDef

cmd/dagger/shell_state.go:368–371  ·  view source on GitHub ↗

GetTypeDef returns the introspection definition for the return type of the last function call

(modDef *moduleDef)

Source from the content-addressed store, hash-verified

366
367// GetTypeDef returns the introspection definition for the return type of the last function call
368func (st *ShellState) GetTypeDef(modDef *moduleDef) (*modTypeDef, error) {
369 fn, err := st.GetDef(modDef)
370 return fn.ReturnType, err
371}
372
373// GetDef returns the introspection definition for the last function call
374func (st *ShellState) GetDef(modDef *moduleDef) (*modFunction, error) {

Callers 2

registerCommandsMethod · 0.45
syncVarsToLLMMethod · 0.45

Calls 1

GetDefMethod · 0.95

Tested by

no test coverage detected