| 260 | } |
| 261 | |
| 262 | MetadataResult ToggleLog(ShellState &state, const vector<string> &args) { |
| 263 | if (state.safe_mode) { |
| 264 | state.PrintF(PrintOutput::STDERR, ".log cannot be used in -safe mode\n"); |
| 265 | return MetadataResult::FAIL; |
| 266 | } |
| 267 | const char *zFile = args[1].c_str(); |
| 268 | state.CloseOutputFile(state.pLog); |
| 269 | state.pLog = state.OpenOutputFile(zFile, 0); |
| 270 | return MetadataResult::SUCCESS; |
| 271 | } |
| 272 | |
| 273 | MetadataResult SetMaxRows(ShellState &state, const vector<string> &args) { |
| 274 | if (args.size() > 3) { |
nothing calls this directly
no test coverage detected