Introduce app-store-connect register-devices-from-file action to bulk-register devices from a file with UDIDs
Add short flags for app-store-connect register-device action
Demonstration of the command and its output
## File content
```
00000000-000000000000001E
00000000-000000000000002E
00000000-000000000000003X
```
UDIDs in file:
1. Valid UDID, but the device is present.
2. Valid UDID, the device doesn't yet exists and will be registered
3. Invalid UDID
## Command
```shell
app-store-connect register-devices-from-file -n iPhone UDIDs.txt
```
## Output
```
Creating new Device: udid: 00000000-000000000000001E, name: iPhone, platform: IOS
Failed to register a device: POST https://api.appstoreconnect.apple.com/v1/devices returned 409: There is a problem with the request entity - A device with number '00000000-000000000000001E' already exists on this team.
Creating new Device: udid: 00000000-000000000000002E, name: iPhone, platform: IOS
-- Device (Created) --
Id: H2985X3P8Q
Type: devices
Class: IPOD
Name: iPhone
Platform: IOS
Status: ENABLED
Udid: 00000000-000000000000002E
Created Device H2985X3P8Q
Invalid device UDID on line 4: '00000000-000000000000003X'
```
The syntax highlight demonstration
app-store-connect register-devices-from-file
action to bulk-register devices from a file with UDIDsapp-store-connect register-device
actionDemonstration of the command and its output
## File content ``` 00000000-000000000000001E 00000000-000000000000002E 00000000-000000000000003X ``` UDIDs in file: 1. Valid UDID, but the device is present. 2. Valid UDID, the device doesn't yet exists and will be registered 3. Invalid UDID ## Command ```shell app-store-connect register-devices-from-file -n iPhone UDIDs.txt ``` ## Output ``` Creating new Device: udid: 00000000-000000000000001E, name: iPhone, platform: IOS Failed to register a device: POST https://api.appstoreconnect.apple.com/v1/devices returned 409: There is a problem with the request entity - A device with number '00000000-000000000000001E' already exists on this team. Creating new Device: udid: 00000000-000000000000002E, name: iPhone, platform: IOS -- Device (Created) -- Id: H2985X3P8Q Type: devices Class: IPOD Name: iPhone Platform: IOS Status: ENABLED Udid: 00000000-000000000000002E Created Device H2985X3P8Q Invalid device UDID on line 4: '00000000-000000000000003X' ``` The syntax highlight demonstration