mirror of
https://github.com/docker/compose.git
synced 2026-09-27 01:42:08 +00:00
StartOptions fuses two contracts: the fields s.start honors (Project, AttachTo-as-project-source, Wait, WaitTimeout) and the fields only Up's foreground session reads (Attach, OnExit, ExitCodeFrom, Watch, NavigationMenu). Passing the latter to Start compiled, returned no error, and did nothing. Each session field is now marked 'honored by Up's foreground session only; ignored by Start'. Two implicit behaviors become explicit along the way: Attach doubles as the detached/interactive mode switch (nil means Up returns once containers are started), and AttachTo has two unrelated meanings (project reconstruction source for Start, log scoping for Up). Part of #14074 (B: pkg/api promises things the implementation does not honor). Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com> |
||
|---|---|---|
| .. | ||
| api.go | ||
| api_test.go | ||
| context.go | ||
| env.go | ||
| errors.go | ||
| errors_test.go | ||
| event.go | ||
| labels.go | ||
| labels_test.go | ||