@@ -50,7 +50,7 @@ bool HardwareListCmd::Exec(const std::string& host, int port,
50
50
if (!ho.has_value () || ho.value ().show_cpu ) {
51
51
std::cout << " CPU Information:" << std::endl;
52
52
Table table;
53
- std::vector<std::string> column_headers{" (Index) " , " Arch" , " Cores" , " Model" ,
53
+ std::vector<std::string> column_headers{" # " , " Arch" , " Cores" , " Model" ,
54
54
" Instructions" };
55
55
56
56
Row_t header{column_headers.begin (), column_headers.end ()};
@@ -74,7 +74,7 @@ bool HardwareListCmd::Exec(const std::string& host, int port,
74
74
if (!ho.has_value () || ho.value ().show_os ) {
75
75
std::cout << " OS Information:" << std::endl;
76
76
Table table;
77
- std::vector<std::string> column_headers{" (Index) " , " Version" , " Name" };
77
+ std::vector<std::string> column_headers{" # " , " Version" , " Name" };
78
78
79
79
Row_t header{column_headers.begin (), column_headers.end ()};
80
80
table.add_row (header);
@@ -91,7 +91,7 @@ bool HardwareListCmd::Exec(const std::string& host, int port,
91
91
if (!ho.has_value () || ho.value ().show_ram ) {
92
92
std::cout << " RAM Information:" << std::endl;
93
93
Table table;
94
- std::vector<std::string> column_headers{" (Index) " , " Total (MiB)" ,
94
+ std::vector<std::string> column_headers{" # " , " Total (MiB)" ,
95
95
" Available (MiB)" };
96
96
97
97
Row_t header{column_headers.begin (), column_headers.end ()};
@@ -106,14 +106,18 @@ bool HardwareListCmd::Exec(const std::string& host, int port,
106
106
std::cout << std::endl;
107
107
}
108
108
109
- if (!ho.has_value () || ho.value ().show_gpu ) {
109
+ if (!ho.has_value () || ho.value ().show_gpu ) {
110
110
std::cout << " GPU Information:" << std::endl;
111
111
Table table;
112
- std::vector<std::string> column_headers{
113
- " (Index)" , " ID" ,
114
- " Name" , " Version" ,
115
- " Total (MiB)" , " Available (MiB)" ,
116
- " Driver Version" , " Compute Capability" , " Activated" };
112
+ std::vector<std::string> column_headers{" #" ,
113
+ " GPU ID" ,
114
+ " Name" ,
115
+ " Version" ,
116
+ " Total (MiB)" ,
117
+ " Available (MiB)" ,
118
+ " Driver Version" ,
119
+ " Compute Capability" ,
120
+ " Activated" };
117
121
118
122
Row_t header{column_headers.begin (), column_headers.end ()};
119
123
table.add_row (header);
@@ -144,7 +148,7 @@ bool HardwareListCmd::Exec(const std::string& host, int port,
144
148
if (!ho.has_value () || ho.value ().show_storage ) {
145
149
std::cout << " Storage Information:" << std::endl;
146
150
Table table;
147
- std::vector<std::string> column_headers{" (Index) " , " Total (GiB)" ,
151
+ std::vector<std::string> column_headers{" # " , " Total (GiB)" ,
148
152
" Available (GiB)" };
149
153
150
154
Row_t header{column_headers.begin (), column_headers.end ()};
@@ -163,14 +167,15 @@ bool HardwareListCmd::Exec(const std::string& host, int port,
163
167
if (!ho.has_value () || ho.value ().show_power ) {
164
168
std::cout << " Power Information:" << std::endl;
165
169
Table table;
166
- std::vector<std::string> column_headers{" (Index) " , " Battery Life" ,
170
+ std::vector<std::string> column_headers{" # " , " Battery Life" ,
167
171
" Charging Status" , " Power Saving" };
168
172
169
173
Row_t header{column_headers.begin (), column_headers.end ()};
170
174
table.add_row (header);
171
175
table.format ().font_color (Color::green);
172
176
std::vector<std::string> row = {" 1" };
173
- cortex::hw::PowerInfo pi = cortex::hw::power::FromJson (result.value ()[" power" ]);
177
+ cortex::hw::PowerInfo pi =
178
+ cortex::hw::power::FromJson (result.value ()[" power" ]);
174
179
row.emplace_back (std::to_string (pi .battery_life ));
175
180
row.emplace_back (pi .charging_status );
176
181
row.emplace_back (pi .is_power_saving ? " Yes" : " No" );
0 commit comments