telerik / mobile-cli-lib

Contains common infrastructure for CLIs - mainly AppBuilder, NativeScript, DDB and Proton.
Apache License 2.0
11 stars 10 forks source link

Do not start emulator when `--available-devices` is passed #949

Closed rosen-vladimirov closed 7 years ago

rosen-vladimirov commented 7 years ago

In case there's no devices attached and no emulators running, trying <cli name> devices <platform> --available-devices will start emulator. In order to fix this, modify the startEmulatorIfNecessary method to skip the starting in case skipInferPlatform option is passed. This option indicates that we are not concerned of specific platform, so the method does not know which is the target platform for which to start emulator. Add unit test for this behavior.

justcodebuilduser commented 7 years ago

:heart: