Say i have a pipeline with 2 functions returning the module for chaining. How can I see logs from all previous .WithExec calls ?
e.g : if i do the following i'm only seeing "hello world from function2 "
dagger call function-1 function-2 container stdout
package main
import (
"context"
"dagger/test-chaining/internal/dagger"
)
type TestChaining struct {
Container *dagger.Container
}
func (m *TestChaining) Function1(ctx context.Context) *TestChaining {
m.Container = dag.Container().From("alpine").WithExec([]string{"sh", "-c", "echo \"hello from function 1\""})
return m
}
func (m *TestChaining) Function2(ctx context.Context) *TestChaining {
m.Container = m.Container.WithExec([]string{"sh", "-c", "echo \"hello from function 2\""})
return m
}
I know stdout only returns the output from the last .WithExec() but what would be the right way to see stdouts from all WithExecs ?