Trying out switching from dagger.io/dagger to a generated client. I used to have something like this in my code, which was quite nice. That ClientOpt is no longer there on the generated client. Is there a new approach for doing this ?
out := io.Discard
if verbose {
out = os.Stderr
}
dag, err := dagger.Connect(ctx, dagger.WithLogOutput(out))
if err != nil {
return fmt.Errorf("dagger connect: %w", err)
}
defer dag.Close()