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

Function daggerInitPythonAt

core/integration/module_python_test.go:2153–2164  ·  view source on GitHub ↗
(modPath string, args ...string)

Source from the content-addressed store, hash-verified

2151}
2152
2153func daggerInitPythonAt(modPath string, args ...string) dagger.WithContainerFunc {
2154 execArgs := append([]string{"init", "--sdk=python"}, args...)
2155 if len(args) == 0 {
2156 execArgs = append(execArgs, "--name=test")
2157 }
2158 if modPath != "" {
2159 execArgs = append(execArgs, "--source="+modPath, modPath)
2160 } else {
2161 execArgs = append(execArgs, "--source=.")
2162 }
2163 return daggerExec(execArgs...)
2164}
2165
2166func pipLockMod(t *testctx.T, c *dagger.Client, inc []string) dagger.WithContainerFunc {
2167 t.Helper()

Callers 2

TestInitMethod · 0.85
daggerInitPythonFunction · 0.85

Calls 1

daggerExecFunction · 0.85

Tested by

no test coverage detected