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

Method with_default_args

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

Configures default arguments for future commands. Like CMD in Dockerfile. Parameters ---------- args: Arguments to prepend to future executions (e.g., ["-v", "--no- cache"]).

(self, args: list[str])

Source from the content-addressed store, hash-verified

2817 return Container(_ctx)
2818
2819 def with_default_args(self, args: list[str]) -> Self:
2820 """Configures default arguments for future commands. Like CMD in
2821 Dockerfile.
2822
2823 Parameters
2824 ----------
2825 args:
2826 Arguments to prepend to future executions (e.g., ["-v", "--no-
2827 cache"]).
2828 """
2829 _args = [
2830 Arg("args", args),
2831 ]
2832 _ctx = self._select("withDefaultArgs", _args)
2833 return Container(_ctx)
2834
2835 def with_default_terminal_cmd(
2836 self,

Callers

nothing calls this directly

Calls 3

ArgClass · 0.90
_selectMethod · 0.80
ContainerClass · 0.70

Tested by

no test coverage detected