Skip to content

feat: add ConnectionType to device details output#698

Open
Harrilee wants to merge 1 commit into
danielpaulus:mainfrom
Harrilee:connection-type-device-list
Open

feat: add ConnectionType to device details output#698
Harrilee wants to merge 1 commit into
danielpaulus:mainfrom
Harrilee:connection-type-device-list

Conversation

@Harrilee
Copy link
Copy Markdown
Contributor

Enhance the device details output by including the connection type in both JSON and console formats. Introduce a new method, ConnectionTypeLabel, to retrieve the connection type from the device properties, defaulting to "unknown" if not specified.

Example

% go run . list --details                                   
{"deviceList":[{"Udid":"00008130-000C3DD901E0001C","ProductName":"iPhone OS","ProductType":"iPhone16,2","ProductVersion":"26.3.1","ConnectionType":"USB"},{"Udid":"00008130-000C3DD901E0001C","ProductName":"iPhone OS","ProductType":"iPhone16,2","ProductVersion":"26.3.1","ConnectionType":"Network"}]}

Enhance the device details output by including the connection type in both JSON and console formats. Introduce a new method, ConnectionTypeLabel, to retrieve the connection type from the device properties, defaulting to "unknown" if not specified.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant