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

Method isCurrentContextFunction

cmd/dagger/shell_exec.go:380–383  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

378}
379
380func (h *shellCallHandler) isCurrentContextFunction(name string) bool {
381 def := h.GetDef(nil)
382 return def.HasMainFunction(name)
383}
384
385func (h *shellCallHandler) StateLookup(ctx context.Context, name string) (*ShellState, error) {
386 if h.Debug() {

Callers 1

entrypointCallMethod · 0.95

Calls 2

GetDefMethod · 0.95
HasMainFunctionMethod · 0.80

Tested by

no test coverage detected