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

Method WithInput

core/env.go:131–137  ·  view source on GitHub ↗

Add an input (read-only) binding to the environment

(key string, val dagql.Typed, description string)

Source from the content-addressed store, hash-verified

129
130// Add an input (read-only) binding to the environment
131func (env *Env) WithInput(key string, val dagql.Typed, description string) *Env {
132 env = env.Clone()
133 input := &Binding{Key: key, Value: val, Description: description}
134 _ = input.ID() // If val is an object, force its ingestion
135 env.inputsByName[key] = input
136 return env
137}
138
139// Register the desire for a binding in the environment
140func (env *Env) WithOutput(key string, expectedType dagql.Type, description string) *Env {

Callers 15

ExtendEnvTypeMethod · 0.45
InstallMethod · 0.45
withStringInputMethod · 0.45
InstallMethod · 0.45
InstallMethod · 0.45
InstallMethod · 0.45
InstallMethod · 0.45
InstallMethod · 0.45
InstallMethod · 0.45
InstallMethod · 0.45
InstallMethod · 0.45
InstallMethod · 0.45

Calls 2

CloneMethod · 0.95
IDMethod · 0.95

Tested by

no test coverage detected