Closed KazuCocoa closed 7 years ago
In general I would prefer to use only --devices
, because with --device-pattern
we have 2 flags that not only can be used one instead of another but also can be used together and result in non-obvious behavior…
I understand that filtering adb devices in bash with grep/awk and passing result to --devices
is not very pleasant task, but it's possible.
Also since you have JVM on board you can use Kotlin Script to filter and prepare list of devices for Composer.
@yunikkk @dmitry-novikov @ming13 what are your thoughts?
@artem-zinnatullin, I see no issues with wider range of possibilities to specify test devices. To resolve issue with "non-obvious behavior" I would propose to prohibit usage of both parameters together.
--devices
option looks stronger for me, so I would suggest --devices
to overwrite --device-pattern
if both are specified.
But if you use --devices
it means that you know device ids upfront, while --device-pattern
is designed for cases when you don't know device ids…
So if you specify --devices
- you know which of them you need, not much sense to add additional --device-pattern
...
I appreciate your reviews!
Should I ignore --device-pattern
if both --devices
and --device-patten
are provided?
It would be nice, as now it's unclear how two options will work together...
enable --device-pattern
if --devices
is not passed
Mm, wait @yunikkk I would prefer to exit with error if both parameters are present, otherwise user might not realize that one of them is silently ignored!
the fail with error when both are present would be more appropriate from the plugin perspective as well. I will have to add both to the plugin and tend to prefer strict prevention of illegal configs over printing warnings and hoping someone sees it.
Yep, great point about plugin, @trevjonez!
@artem-zinnatullin - ok, that sounds even better than silently ignoring. @KazuCocoa thanks! Sorry for conflicting review comments=\
Thanks for kinda reviews!
thanks for merging and the useful tool!
Open Source for the win!
On Mon, Aug 14, 2017, 6:50 AM Kazuaki Matsuo notifications@github.com wrote:
thanks for merging and the useful tool!
— You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/gojuno/composer/pull/94#issuecomment-322195161, or mute the thread https://github.com/notifications/unsubscribe-auth/AA7B3LJkqp1KaIkeBHFnlqT47CblVn16ks5sYFCagaJpZM4Or3Xk .
Thank you for your contributions :)
On Mon, Aug 14, 2017, 8:51 AM Artem Zinnatullin artem.zinnatullin@gmail.com wrote:
Open Source for the win!
On Mon, Aug 14, 2017, 6:50 AM Kazuaki Matsuo notifications@github.com wrote:
thanks for merging and the useful tool!
— You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/gojuno/composer/pull/94#issuecomment-322195161, or mute the thread https://github.com/notifications/unsubscribe-auth/AA7B3LJkqp1KaIkeBHFnlqT47CblVn16ks5sYFCagaJpZM4Or3Xk .
@yunikkk Could you release the new version?
@KazuCocoa sure
Hi, there
I'd like to add
--devicePattern
as one of the arguments for the composer command.a use case
--devices
but we should set all serial patterns. I'd like to set the pattern withRegex
to make script simple.What do you think?