When using strings.Contains our flow breaks when selecting the container - see issue https://github.com/tedsmitt/ecsgo/issues/20
The problem is we have 2 containers that are named like this
sample-ui-logger
sample-ui
I pick up the first sample-ui, but it ends up ssh into sample-ui-logger, because .Contains function will match both in that case.
Please check it out, not sure there is a specific reason for using .Contains
Thanks @yerfinojul! I don't think there is a reason why string.Contains - probably just poor coding on my part! Have tested the changes locally and LGTM! Merged 😄
When using
strings.Contains
our flow breaks when selecting the container - see issue https://github.com/tedsmitt/ecsgo/issues/20 The problem is we have 2 containers that are named like thisI pick up the first
sample-ui
, but it ends up ssh intosample-ui-logger
, because.Contains
function will match both in that case.Please check it out, not sure there is a specific reason for using
.Contains