MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / setConfigOutputMode

Function setConfigOutputMode

tools/shell/shell_runner.cpp:19–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17using namespace lbug::common;
18
19int 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
29void addInitFileDirToSearchPath(const std::shared_ptr<Connection>& conn,
30 const std::string& initFile) {

Callers 1

mainFunction · 0.85

Calls 1

defaultPrintStatsMethod · 0.45

Tested by

no test coverage detected