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

Function daggerShellNoMod

core/integration/module_shell_test.go:33–40  ·  view source on GitHub ↗
(script string)

Source from the content-addressed store, hash-verified

31}
32
33func daggerShellNoMod(script string) dagger.WithContainerFunc {
34 return func(c *dagger.Container) *dagger.Container {
35 return c.WithExec([]string{"dagger", "shell", "-M"}, dagger.ContainerWithExecOpts{
36 Stdin: script,
37 ExperimentalPrivilegedNesting: true,
38 })
39 }
40}
41
42func (ShellSuite) TestScriptMode(ctx context.Context, t *testctx.T) {
43 t.Run("root script argument", func(ctx context.Context, t *testctx.T) {

Callers 4

TestNoLoadModuleMethod · 0.85
TestStateInVarUsageMethod · 0.85

Calls 1

WithExecMethod · 0.45

Tested by

no test coverage detected