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

Function printModeInfo

tools/shell/embedded_shell.cpp:756–771  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

754}
755
756void printModeInfo() {
757 printf("Available output modes:\n");
758 printf("%sbox (default):%sTables using unicode box-drawing characters\n", TAB, TAB);
759 printf("%scolumn:%sOutput in columns\n", TAB, TAB);
760 printf("%scsv:%sComma-separated values\n", TAB, TAB);
761 printf("%shtml:%sHTML table\n", TAB, TAB);
762 printf("%sjson:%sResults in a JSON array\n", TAB, TAB);
763 printf("%sjsonlines:%sResults in a NDJSON format\n", TAB, TAB);
764 printf("%slatex:%sLaTeX tabular environment code\n", TAB, TAB);
765 printf("%sline:%sOne value per line\n", TAB, TAB);
766 printf("%slist:%sValues delimited by \"|\"\n", TAB, TAB);
767 printf("%smarkdown:%sMarkdown table\n", TAB, TAB);
768 printf("%stable:%sTables using ASCII characters\n", TAB, TAB);
769 printf("%stsv:%sTab-separated values\n", TAB, TAB);
770 printf("%strash:%sNo output\n", TAB, TAB);
771}
772
773void EmbeddedShell::setMode(const std::string& modeString) {
774 if (modeString.empty()) {

Callers 1

setModeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected