compose/cmd
Laura Brehm ce5a0c656f
Fix cancellable context detection in `AdaptCmd`
`AdaptCmd` was previously checking for a `.WithCancel` suffix
on context strings, however it's possible for a context to be
cancellable without ending in that suffix, such as when
`context.WithValue` was called after `WithContext`, e.g.:

```go
context.Background.WithCancel.WithValue(type trace.traceContextKeyType,
val <not Stringer>).WithValue(type api.DryRunKey, val <not Stringer>)
```

Signed-off-by: Laura Brehm <laurabrehm@hey.com>
2023-12-22 13:39:04 +00:00
..
cmdtrace otel: add args & flags to cli traces (#10974) 2023-09-07 16:04:36 -04:00
compatibility don't skip `compose` used as project name 2023-06-06 10:24:59 +02:00
compose Fix cancellable context detection in `AdaptCmd` 2023-12-22 13:39:04 +00:00
formatter Restore `Project` is ps json output 2023-11-24 10:46:33 +01:00
main.go otel: add args & flags to cli traces (#10974) 2023-09-07 16:04:36 -04:00