We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73b7aaf commit 7aea935Copy full SHA for 7aea935
dep/compose/compose.go
@@ -22,10 +22,15 @@ type Compose struct {
22
ready func(tc.ComposeStack) error
23
}
24
25
+// New creates new Compose depencency.
26
+// By default it applies tc.Wait(true) and tc.RemoveOrphans(true) options.
27
+// Those can be overwritten by WithUpOptions and WithDownOptions.
28
func New(opts ...Opt) *Compose {
29
return &Compose{
- opts: opts,
- ready: func(cs tc.ComposeStack) error { return nil },
30
+ opts: opts,
31
+ ready: func(cs tc.ComposeStack) error { return nil },
32
+ upOpts: []tc.StackUpOption{tc.Wait(true)},
33
+ downOpts: []tc.StackDownOption{tc.RemoveOrphans(true)},
34
35
36
0 commit comments