Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions dep/compose/compose.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,15 @@ type Compose struct {
ready func(tc.ComposeStack) error
}

// New creates new Compose depencency.
// By default it applies tc.Wait(true) and tc.RemoveOrphans(true) options.
// Those can be overwritten by WithUpOptions and WithDownOptions.
func New(opts ...Opt) *Compose {
return &Compose{
opts: opts,
ready: func(cs tc.ComposeStack) error { return nil },
opts: opts,
ready: func(cs tc.ComposeStack) error { return nil },
upOpts: []tc.StackUpOption{tc.Wait(true)},
downOpts: []tc.StackDownOption{tc.RemoveOrphans(true)},
}
}

Expand Down