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

Method with_

sdk/python/src/dagger/client/gen.py:15466–15471  ·  view source on GitHub ↗

Call the provided callable with current Up. This is useful for reusability and readability by not breaking the calling chain.

(self, cb: Callable[["Up"], "Up"])

Source from the content-addressed store, hash-verified

15464 return Up(_ctx)
15465
15466 def with_(self, cb: Callable[["Up"], "Up"]) -> "Up":
15467 """Call the provided callable with current Up.
15468
15469 This is useful for reusability and readability by not breaking the calling chain.
15470 """
15471 return cb(self)
15472
15473
15474@typecheck

Callers 7

test_container_withFunction · 0.45
set_env_varsMethod · 0.45
set_env_varsMethod · 0.45
set_env_varsMethod · 0.45
set_env_varsMethod · 0.45
set_env_varsMethod · 0.45
set_env_varsMethod · 0.45

Calls

no outgoing calls

Tested by 1

test_container_withFunction · 0.36