| 286 | } |
| 287 | |
| 288 | MetadataResult SetMaxWidth(ShellState &state, const vector<string> &args) { |
| 289 | if (args.size() > 2) { |
| 290 | return MetadataResult::PRINT_USAGE; |
| 291 | } |
| 292 | if (args.size() == 1) { |
| 293 | state.PrintF("current max rows: %zu\n", state.max_width); |
| 294 | } else { |
| 295 | state.max_width = (size_t)ShellState::StringToInt(args[1]); |
| 296 | } |
| 297 | return MetadataResult::SUCCESS; |
| 298 | } |
| 299 | |
| 300 | MetadataResult SetColumnRendering(ShellState &state, const vector<string> &args) { |
| 301 | state.columns = 1; |