mirror of
https://github.com/akuker/RASCSI.git
synced 2025-08-15 08:27:34 +00:00
rasctl output update
This commit is contained in:
@@ -213,7 +213,7 @@ void CommandServerInfo(const string& hostname, int port)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
cout << "Device types and their properties:" << endl;
|
cout << "Supported device types and their properties:" << endl;
|
||||||
for (int i = 0; i < serverInfo.types_properties_size(); i++) {
|
for (int i = 0; i < serverInfo.types_properties_size(); i++) {
|
||||||
PbDeviceTypeProperties types_properties = serverInfo.types_properties(i);
|
PbDeviceTypeProperties types_properties = serverInfo.types_properties(i);
|
||||||
cout << " " << PbDeviceType_Name(types_properties.type());
|
cout << " " << PbDeviceType_Name(types_properties.type());
|
||||||
@@ -272,10 +272,10 @@ void CommandServerInfo(const string& hostname, int port)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
cout << "Available devices:" << endl;
|
cout << "Attached devices:" << endl;
|
||||||
const PbDevices& devices = serverInfo.devices();
|
const PbDevices& devices = serverInfo.devices();
|
||||||
if (!devices.devices_size()) {
|
if (!devices.devices_size()) {
|
||||||
cout << "No devices available" << endl;
|
cout << "No devices attached" << endl;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
list<PbDevice> sorted_devices;
|
list<PbDevice> sorted_devices;
|
||||||
|
Reference in New Issue
Block a user