capacitor
capacitor copied to clipboard
feat: Auto select the device if only one is in the list.
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.