capacitor icon indicating copy to clipboard operation
capacitor copied to clipboard

feat: Auto select the device if only one is in the list.

Open twoco opened this issue 3 years ago • 0 comments

Great that Capacitor now runs via CLI. Thanks. I'm new to Capacitor, coming from Cordova. But it looks promising. To the issue:

This command: ionic capacitor run android (docs) forces me to select a device. Even if only one device exists.

I know the --target arg. But I don't want to specify the ID. Just pick the only one existing device from list. If deviceList.length === 1 then automatically select this one. This can be an additional arg like --target-auto.

twoco avatar Mar 26 '22 12:03 twoco