| 17 | using namespace lbug::common; |
| 18 | |
| 19 | int setConfigOutputMode(const std::string& mode, ShellConfig& shell) { |
| 20 | shell.printer = PrinterFactory::getPrinter(PrinterTypeUtils::fromString(mode)); |
| 21 | if (shell.printer == nullptr) { |
| 22 | std::cerr << "Error: cannot parse output mode: " << mode << '\n'; |
| 23 | return 1; |
| 24 | } |
| 25 | shell.stats = shell.printer->defaultPrintStats(); |
| 26 | return 0; |
| 27 | } |
| 28 | |
| 29 | void addInitFileDirToSearchPath(const std::shared_ptr<Connection>& conn, |
| 30 | const std::string& initFile) { |
no test coverage detected